Now the URL is “called” at boot.
I don’'t really understand the code, how do I “call” the URL again? Do I need to execute:
mgos_event_add_group_handler(MGOS_EVENT_GRP_NET, net_event_handler, NULL);
Every time I want to send something to the API (the URL)?
I read the sensor, I then want to call an the API URL ++ “field0=newValue”. If that makes sense.
I get it working. A mistake in LOG print of the result.
However when I trying some real site link. e.g. https://mongoose-os.com
The first time is “OK”, it receives the MG_EV_HTTP_CHUNK with data.
But when I try few times, there is some memory leaks somewhere.