iot-central-firmware/MBED_OS
Oguz Bastemur 623e5f62f2 force get twin update after mqtt connection 2019-02-28 16:10:13 -08:00
..
src/iotc force get twin update after mqtt connection 2019-02-28 16:10:13 -08:00
MQTT.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
README.md Update README.md 2019-01-25 14:45:36 -08:00
TLSSocket.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
app_main.cpp cleanup samples 2019-01-28 16:00:54 -08:00
easy-connect.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
iotz.json mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
mbed-http.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
mbed-os.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
mbed_app.json mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00
ntp-client.lib mbedOS5 and ESP8266/ESP8285 support 2019-01-24 16:46:05 -08:00

README.md

MBED OS 5.X+ basic example for Azure IoT Central

  • Visit AzureIoTCentral and create a new application.
  • Select Sample Devkits
  • Add a new mxchip device. (real device) (Under the Device Explorer)
  • Browse into device window and click/open Connect on the top-right of the device screen
  • Grab scopeId, device Id and primary key and fill the necessary parts under app_main.cpp
// #define WIFI_SSID "<ENTER WIFI SSID HERE>"
// #define WIFI_PASSWORD "<ENTER WIFI PASSWORD HERE>"

// const char* scopeId = "<ENTER SCOPE ID HERE>";
// const char* deviceId = "<ENTER DEVICE ID HERE>";
// const char* deviceKey = "<ENTER DEVICE primary/secondary KEY HERE>";

Compile it! and deploy to your device. (see below)

  • Use MBED online compiler

OR

  • Install iotz from this link
    • (update board name under iotz.json i.e. currently it's "target": "nucleo_l476rg")

Setup the environment; (under the project folder)

iotz init
iotz export

Compile!

iotz make -j2

Upload

Copy the `.bin` file under the `BUILD` folder into your device (possibly an attached disk drive)

Monitoring?

npm install -g nodemcu-tool

Assuming the port/dev for the board is /dev/tty.usbxxxxxxx

nodemcu-tool -p /dev/tty.usbxxxxx -b 9600 terminal