https://github.com/dontsovcmc/arduino_http_tools
functions for parsing http data when you using Ethernet with Arduino
https://github.com/dontsovcmc/arduino_http_tools
Last synced: about 1 year ago
JSON representation
functions for parsing http data when you using Ethernet with Arduino
- Host: GitHub
- URL: https://github.com/dontsovcmc/arduino_http_tools
- Owner: dontsovcmc
- License: gpl-2.0
- Created: 2015-02-18T22:42:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-24T20:01:26.000Z (about 11 years ago)
- Last Synced: 2025-02-14T01:17:33.386Z (over 1 year ago)
- Language: C++
- Size: 164 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arduino_http_tools
Functions for parsing http data when you using Ethernet with Arduino.
// Find parameter in URL string. If value present, return it in "value"
bool find_key(char *stream, const char *key, char *value /*out*/, const int value_len);
stream (input string), key (key to find), value (buffer for key value, if found), value_len (length of key value buffer)
return true - key found, parameter found and good or bad, false - key wasn't found
value=NULL - if not value or parameter longer than value_len
Note: find_key knows that key "note" is not "notebook"
Example: "param1=value1¶m2=value2"
key is "param1" and "param2"; value is "value1"