【mbed OS5対応バージョン】データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。 https://mlkcca.com/
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
Diff: Milkcocoa.h
- Revision:
- 1:8e4149b53a8a
- Parent:
- 0:0a2f634d3324
- Child:
- 3:cddf81a87de3
--- a/Milkcocoa.h Thu Feb 09 07:26:57 2017 +0000 +++ b/Milkcocoa.h Wed Feb 15 02:15:55 2017 +0000 @@ -38,8 +38,7 @@ class Milkcocoa { public: - -// Milkcocoa(const char *host, uint16_t port, const char *_app_id, const char *client_id); + Milkcocoa(NetworkInterface* nif, const char *host, uint16_t port, const char *_app_id, const char *client_id); Milkcocoa(NetworkInterface* nif, const char *host, uint16_t port, const char *_app_id, const char *client_id, char *_session); static Milkcocoa* createWithApiKey(NetworkInterface* nif, const char *host, uint16_t port, const char *_app_id, const char *client_id, char *key, char *secret); @@ -64,9 +63,12 @@ MClient *client; GeneralFunction _cb; MilkcocoaSubscriber *milkcocoaSubscribers[MILKCOCOA_SUBSCRIBERS]; - Thread cycleThread; - void cycle_Thread(void); - static void threadStarter(void const *p); + Thread cycleThread1; + Thread cycleThread2; + void cycle_Thread1(void); + void cycle_Thread2(void); + static void threadStarter1(void const *p); + static void threadStarter2(void const *p); typedef struct { char message[256];