2020-06-10 18:31:26 +02:00
|
|
|
#ifndef StringFormatter_h
|
|
|
|
#define StringFormatter_h
|
2020-05-24 20:59:49 +02:00
|
|
|
#include <Arduino.h>
|
2020-06-10 18:31:26 +02:00
|
|
|
class StringFormatter
|
2020-05-24 20:59:49 +02:00
|
|
|
{
|
2020-05-25 14:38:18 +02:00
|
|
|
public:
|
|
|
|
static int parse(const char * com, int result[], byte maxResults);
|
2020-05-25 20:59:47 +02:00
|
|
|
static void print( const __FlashStringHelper* input...);
|
2020-06-12 15:28:35 +02:00
|
|
|
static void send(Print & serial, const __FlashStringHelper* input...);
|
2020-05-25 20:59:47 +02:00
|
|
|
private:
|
2020-06-28 13:45:31 +02:00
|
|
|
static void send2(Print & serial, const __FlashStringHelper* input,va_list args);
|
2020-05-25 20:59:47 +02:00
|
|
|
|
2020-06-10 18:31:26 +02:00
|
|
|
|
2020-05-24 20:59:49 +02:00
|
|
|
};
|
2020-05-27 10:40:12 +02:00
|
|
|
#endif
|