This app does two things.
- Reading UART 0 of ESP8266 and sending it to AWS IoT
- Sending device meta data and two pins state to AWS IoT
- Install and start mos tool
- Switch to the Project page, find and import this app(if available otherwise follow the steps below), build and flash it:
- Clone this repo
git clone https://github.com/bravokeyl/mos-aws.git
- Go into the directory
mos-aws
and runmos ui
which opens the project in UI
- You can do this via mos tool ui or using command
mos wifi WIFI_NAME WIFI_PASSWORD
- You can do this via mos tool ui or using command
mos aws-iot-setup --aws-iot-policy mos-default
- Create a thing in AWS IoT and you are done
- Test this by going into AWS IoT MQTT test Console by subscribing to
mos/#
with QoS 1