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.
Dependencies: HTTPClient WIZnetInterface mbed
Fork of dweetIo_CloudService_Helloworld_WIZwiki- by
Revision 6:d4c1982ab151, committed 2018-06-21
- Comitter:
- wiznetw7500
- Date:
- Thu Jun 21 06:47:02 2018 +0000
- Parent:
- 5:95b9bcc5dd34
- Commit message:
- dfyuil
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 24 04:32:01 2017 +0000
+++ b/main.cpp Thu Jun 21 06:47:02 2018 +0000
@@ -7,7 +7,7 @@
*/
#define USE_DHCP 1
//--------- Have to modify the mac address-------------
-unsigned char MAC_Addr[6] = {0x00,0x08,0xDC,0x12,0x34,0x56};
+unsigned char MAC_Addr[6] = {0x00,0x08,0xDC,0x53,0xAE,0x92};
/* IP SET */
//char IP_Addr[] = "192.168.0.100";
@@ -24,7 +24,7 @@
/// mbed_mac_address((char *)MAC_Addr); //Use mbed mac addres
- pc.baud(9600);
+ pc.baud(115200);
#if USE_DHCP
int ret = ethernet.init(MAC_Addr);
#else
@@ -56,7 +56,7 @@
while(1)
{
- sprintf(msg,"http://dweet.io/dweet/for/%s?a0=%d",nameYouWant,(int)(Sensor.read()*1000));
+ sprintf(msg,"http://dweet.io/dweet/for/%s?a0=%d\r\n",nameYouWant,(int)(Sensor.read()*1000));
HTTPClient http;
pc.printf("Send post message to dweet.io\r\n");
--- a/mbed.bld Tue Oct 24 04:32:01 2017 +0000 +++ b/mbed.bld Thu Jun 21 06:47:02 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/e7ca05fa8600 \ No newline at end of file
