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: NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed
Fork of F103-Serial-to-Ethernet by
Revision 21:fae96e0d6bb1, committed 2014-11-15
- Comitter:
- olympux
- Date:
- Sat Nov 15 11:53:00 2014 +0000
- Parent:
- 20:71c7950fdd91
- Child:
- 22:e5f0aa929c44
- Commit message:
- Only enter config mode when received discovery command
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Nov 15 11:46:12 2014 +0000
+++ b/main.cpp Sat Nov 15 11:53:00 2014 +0000
@@ -466,7 +466,7 @@
#ifdef UDP_SERVER
n = udp_server.receiveFrom(ep_udp_client, udp_receiving_buffer, sizeof(udp_receiving_buffer));
- if (n > 0) {
+ if ((n == QUERY_CMD_LENGTH) && (strstr(udp_receiving_buffer, QUERY_DISCOVERY_CMD) != NULL)) {
// if receive any config command, stay in config mode forever
DBG("Enabled configuration mode...");
DBG("!!! RESET when finished");
