Hi.
Just format your message as a json object, and then stringify.
You can use a simple library like https://github.com/arduino-libraries/Arduino_JSON
Or something more advanced like this: https://arduinojson.org/
Regards,
Sara
yes, i like this.
how to modif in sample code in module ebook smart home?
please
i want to send data like this:
{
“VAC”: 220.6,
“IAC”: 0,
“PAC”: 0,
“EAC”: 1.343,
“PFAC”: 0,
“BV2”: 26.09,
“BI2”: 0,
“SOC2”: 32,
“CS2”: “Not Chg”,
“BS2”: “Under”,
“PV2”: 0,
“PI2”: 0,
“PP2”: 0,
“PE2”: 0,
“PEM2”: 12.61,
“BV1”: 26,
“C1”: 3.249,
“C2”: 3.251,
“C3”: 3.252,
“C4”: 3.249,
“C5”: 3.253,
“C6”: 3.252,
“C7”: 3.252,
“C8”: 3.251,
“BI1”: -0.72,
“BT1”: 29.7,
“BT2”: 27.9,
“LONG”: 0,
“LAT”: 0,
“JAR”: 0,
“TIME”: “20:42:24 29/02/2024”
}
and a lot more data.
Please help me