Good morning everyone;
I have a program written in c (Arduino) with which I read the data of my photovoltaic system, through the following POST request:
http.begin(client, “http://” + IPaddress + “/lala.cgi/”); //HTTP
http.addHeader(“Content-Type”, “application/json”);
int httpCode = http.POST("{"ENERGY":{"GUI_INVERTER_POWER":"","GUI_HOUSE_POW":"","GUI_BAT_DATA_POWER":"",\ “GUI_GRID_POW":"","GUI_BAT_DATA_FUEL_CHARGE":""}}”);
can i have your help?, i can’t do it with kodular, at most i can get only a simple {“ENERGY”:
thanks to anyone who can help me
Hello and thanks for the reply
get request doesn’t work on my inverter
the data I should receive (done with POSTMAN) are:
{
“ENERGY”: {
“GUI_INVERTER_POWER”: “fl_4356E001”,
“GUI_HOUSE_POW”: “fl_43BFD6E4”,
“GUI_BAT_DATA_POWER”: “fl_C31546E3”,
“GUI_GRID_POW”: “fl_C26C47AE”,
“GUI_BAT_DATA_FUEL_CHARGE”: “fl_42C40000”
}
}
you can use a list of lists or a alternatively as @Amidonu is using it a dictionary to define a request header
you also can try to put the complete string as it is "{"ENERGY":{"GUI_INVERTER_POWER":"","GUI_HOUSE_POW":"","GUI_BAT_DATA_POWER":"", “GUI_GRID_POW":"","GUI_BAT_DATA_FUEL_CHARGE":""}}”
into a text block and the text block as text into the PostText method
I’m still here asking for help
the data imported with the POST request are in hexadecimal format (8 bytes) and I should transform them into FLOAT or INT to display them
example: hex 450B9AB0 = float 2233.67
can you help me?