![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
【 IoTを試そう [ODIN-W2(WiFi) + 温度計 + milkcocoa ] 】 ODIN-W2 にmbed ApplicationShiled をつないで、 https://developer.mbed.org/components/mbed-Application-Shield/ 温度のデータをMilkcocoaにアップするプログラムです。
Dependencies: LM75B Milkcocoa-os
Fork of mbed-os-example-mbed5-wifi by
Diff: README.md
- Revision:
- 17:79fa29aa6724
- Parent:
- 10:5b5beb106156
--- a/README.md Mon Apr 10 16:30:03 2017 +0100 +++ b/README.md Tue Apr 18 07:22:04 2017 +0000 @@ -1,4 +1,4 @@ -# mbed-os-example-wifi # +# mbed-os-example-wifi with Milkcocoa # WiFi example for mbed OS @@ -17,6 +17,9 @@ ESP2866 is a fallback option and will be used if the build is for unsupported platform. +with +* [mbed Application Shield](https://developer.mbed.org/components/mbed-Application-Shield/) + #### Connecting the ESP2866 #### ESP module needs to be connected to RX and TX UART pins (+ power and ground) on your target board. That can be achieved using Grove shield or connected directly using jumper wires, please note that not all Arduino form factor boards have UART compatible with the Grove shiled. @@ -36,18 +39,32 @@ 2. Configure the WiFi credentials Edit ```mbed_app.json``` to include correct SSID and Password: + and MilkCocoa item. ``` - "config": { - "wifi-ssid": { - "help": "WiFi SSID", - "value": "\"SSID\"" - }, - "wifi-password": { - "help": "WiFi Password", - "value": "\"Password\"" - } - }, + "milkcocoa_app_id": { + "help": "MilkCocoa Application ID", + "value": "\"xxxxxxxxxxxx\"", + "macro_name": "CONFIG_MILKCOCOA_APP_ID" + }, + "milkcocoa_datastore": { + "help": "Milkcocoa Datastore", + "value": "\"xxxxxxxxx\"", + "macro_name": "CONFIG_MILKCOCOA_DATASTORE" + }, + "serial_console_speed": { + "help": "Baud rate of the serial console", + "value": 115200, + "macro_name": "MBED_SERIAL_UART_SPEED" + }, + "wifi-ssid": { + "help": "WiFi SSID", + "value": "\"xxxxxxxxxxxxx\"" + }, + "wifi-password": { + "help": "WiFi Password", + "value": "\"xxxxxxxxxxx\"" + }, ``` 3. Compile and generate binary