This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
[OoB_5.4.1] [HEXIWEAR + wifi ESP8266/K64F + wifi ESP8266]: Fails to connect/register object. #212
Closed
Description
HEXIWEAR + wifi ESP8266 or K64F + wifi ESP8266 cannot connect to mbed Device Connector.
Executable failed to connect
The same failed terminal prints can be verified for 2 cases.
Case 1 : HEXIWEAR + wifi ESP8266 connect to internet through iphone.
Case 2 : K64F + wifi ESP8266 connect to internet through iphone.
Terminal print out (failed)
Starting mbed Client example in IPv4 mode
[EasyConnect] Using WiFi (ESP8266)
[EasyConnect] Connecting to WiFi botren01
[EasyConnect] Connected to Network successfully
[EasyConnect] IP address 172.20.10.12
[EasyConnect] MAC address 18:fe:34:08:1b:3f
SOCKET_MODE : TCP
Connecting to coap://api.connector.mbed.com:5684
[ERROR:] M2MInterface::NetworkError
[ERROR:] M2MInterface::NetworkError
[ERROR:] M2MInterface::NetworkError
Build command
1. mbed compile -m HEXIWEAR -t ARM -c
2. mbed compile -m K64F -t ARM -c
Executable succeeded to connect
When using IAR or GCC_ARM toolchain to compile, then both cases succeeded the connection.
Terminal print out (Succeeded)
Starting mbed Client example in IPv4 mode
[EasyConnect] Using WiFi (ESP8266)
[EasyConnect] Connecting to WiFi botren01
[EasyConnect] Connected to Network successfully
[EasyConnect] IP address 172.20.10.12
[EasyConnect] MAC address 18:fe:34:08:1b:3f
SOCKET_MODE : TCP
Connecting to coap://api.connector.mbed.com:5684
Registered object successfully!
Build command
1. mbed compile -m HEXIWEAR -t GCC_ARM -c
2. mbed compile -m HEXIWEAR -t IAR -c
3. mbed compile -m K64F -t GCC_ARM -c
4. mbed compile -m K64F -t IAR -c