Firebase example. demonstrating PUT, POST and GET functions. Requires target MCU with at least 280kB Flash/33kB RAM. Tested on STM32F767 and STM32F446 boards using ETHERNET (STM32F767) and ESP8266 WIFI. Edit the mbed_app.json file to change interface, currently set to ESP8266 WIFI at 460800 baud, the default is 115200 baud. however its much more responsive at 460800 if you can use the AT command AT+UART_DEF? (see Espressif instruction set). Using TLSSocket reuse function(default) or can be set to open a new socket per request. Random dummy sensor values are used, just add some real sensors and edit the getSENSORS function. The data format is .json style and need to be wrapped in curly braces. Go to: https://firebase.google.com/products/realtime-database/ and set up a real-time database, takes a couple of minutes, and get your Project ID and Web API key from the Database/settings page. These are entered in the Firebase.h file. Added NTP RTC time set function.

Dependencies:   NTPclient Firebase-https

Committer:
star297
Date:
Sun Mar 08 14:45:02 2020 +0000
Revision:
1:7f0e80fcb3a0
Parent:
0:76248fdccc2a
Added NTP set RTC function.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
star297 0:76248fdccc2a 1 {
star297 0:76248fdccc2a 2 "name": "mbed-http",
star297 0:76248fdccc2a 3 "macros": [
star297 0:76248fdccc2a 4 "MBEDTLS_SHA1_C"
star297 0:76248fdccc2a 5 ],
star297 0:76248fdccc2a 6 "config": {
star297 0:76248fdccc2a 7 "http-buffer-size": {
star297 0:76248fdccc2a 8 "help": "Size of the HTTP receive buffer in bytes",
star297 0:76248fdccc2a 9 "value": 2048,
star297 0:76248fdccc2a 10 "macro_name": "HTTP_RECEIVE_BUFFER_SIZE"
star297 0:76248fdccc2a 11 }
star297 0:76248fdccc2a 12 }
star297 0:76248fdccc2a 13 }