I am trying to update values to Firebase. According to Firebase:
curl -X PUT -d '{ "first": "Jack", "last": "Sparrow" }' \
'https://[PROJECT_ID].firebaseio.com/users/jack/name.json'
We can update using put command. Using curl works fine, but when I look at the header of ESP8266HTTPClient
, I don't see any put
or patch
method there.
I can only see the following:
int GET();
int POST(uint8_t * payload, size_t size);
int POST(String payload);
Whereas in NodeMCU documentation, it is clearly stated it supports the put
method too.
http.put(url, headers, body, callback)
I cannot find any example.
How can I implement the put
method in NodeMCU?