Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
Diff: Milkcocoa.cpp
- Revision:
- 7:f1e123331cad
- Parent:
- 6:1b5ec3a15d67
- Child:
- 8:e2f15b1b4f70
--- 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);