【mbed OS5対応バージョン】データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。 https://mlkcca.com/
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
Revision 7:f1e123331cad, committed 2017-06-01
- Comitter:
- jksoft
- Date:
- Thu Jun 01 05:33:50 2017 +0000
- Parent:
- 6:1b5ec3a15d67
- Child:
- 8:e2f15b1b4f70
- Commit message:
- ??????
Changed in this revision
Milkcocoa.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Milkcocoa.cpp Thu Jun 01 00:23:41 2017 +0000 +++ b/Milkcocoa.cpp Thu Jun 01 05:33:50 2017 +0000 @@ -97,6 +97,10 @@ strcpy(username,"sdammy"); strcpy(password,app_id); + for (int i=0; i<MILKCOCOA_SUBSCRIBERS; i++) { + milkcocoaSubscribers[i] = NULL; + } + #ifdef __MILKCOCOA_THREAD setLoopCycle(5000); @@ -115,6 +119,10 @@ strcpy(username,_session); strcpy(password,app_id); + for (int i=0; i<MILKCOCOA_SUBSCRIBERS; i++) { + milkcocoaSubscribers[i] = NULL; + } + #ifdef __MILKCOCOA_THREAD setLoopCycle(5000);