Hi,
Is it possible to put char content in sentences with g.printf() ? I would like an use like that:
#include <PrintEx.h>
char query1[128];
char message[]="hello";
char autre[]="world";
long long id=0;
GString g(query1);
g.printf("INSERT INTO arduilog.logs (id,subsystem,value) VALUES (%d,%s,%s)",id,message,autre);
I tried with sprintf() function but it doesn't work. Could you send me an example if this thing exist?
Hi,
Is it possible to put char content in sentences with g.printf() ? I would like an use like that:
#include <PrintEx.h>char query1[128];char message[]="hello";char autre[]="world";long long id=0;GString g(query1);g.printf("INSERT INTO arduilog.logs (id,subsystem,value) VALUES (%d,%s,%s)",id,message,autre);I tried with sprintf() function but it doesn't work. Could you send me an example if this thing exist?