Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

g.printf() funtion #33

Open Sebenzouz opened 5 years ago

Sebenzouz commented 5 years ago

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?