|
NuMaker-IOT-M487Feb 22, 2019 Page 10 of 15 Rev 1.00ALIOS THINGS ON NUMAKER-IOT-M487 QUICK START GUIDEOpen serial communication and press Reset button on board. After system reset, Tera termterminate emulator will print messages on screen as Figure 4‑8.Figure 4‑8 Serial Communication Using Tera Term and Boot-up MessagesFirst, you must set Wi-Fi SSID and password manually as Figure 4‑9. Once it is associated withWi-Fi router, these Wi-Fi SSID and password will be stored in internal Flash. The networkmanaging command is shown below:netmgr connect ssid password open|wep|wpa|wpa2ex: ssid: NT_ZY_BUFFALO, password: 12345678Figure 4‑9 Wi-Fi Local Connectivity and get IP AddressTest Ali-Cloud ServiceBefore testing Ali-Cloud MQTT server, you need to get three-parameters obtained from the Ali-Cloud and update three-parameters to mqtt_example.c source code as shown in Figure 4‑10.Please note the three-parameters in mqttapp source code are for demo by default. After leasedan IP address from DHCP server of Wi-Fi router, mqttapp routing will connect to Ali-Cloud MQTTserver automatically as shown in Figure 4‑11. Please remember, the three-parameters in sourcecode are for product development and test, do not apply it in your any product. For applicationand configuration of Ali-Cloud three-parameters, you can refer to AliOS Things official document.You can find it in https://github.com/alibaba/AliOS-Things/wiki/stm32-networking.zh.Type netmgr connect Leased an IP address from DHCP server.
PreviousNext |