- Platform: Mongoose OS firmware
- Language: JS-enabled
- Developer: Rohit Lal Chandani
- Compatible: AWS and GCP
- Goto code source folder
Example: cd /Users/rohit/Projects/IOT-MOS-ESP8266 - Execute
mos build
- Open mos UI by executing
mos - Connect ESP8266 using UART cable
- Select the UART Port
- Execute
mos flash
- Login to Google Cloud Console
- Select the project
- Goto
API & Servicesand click onCredentialsand create/use Service account and download the credential JSON file - In terminal export
GOOGLE_APPLICATION_CREDENTIALSvariable with location of this service account credential fileexport GOOGLE_APPLICATION_CREDENTIALS="/Users/rohit/Projects/GoogleCloud/Google Cloud Local Development Key/serviceAccountKey_for_local_development_only.json" - Open mos UI by executing
mos - Connect ESP8266 using UART cable
- Select the UART Port
- Execute below command to register with GCP
This will create a new device in GCP IOT Core console
mos gcp-iot-setup --gcp-project smartdevices-272506 --gcp-region us-central1 --gcp-registry iotcore-registry
- Install AWS CLI
brew install awscli - Configure AWS account using IAM Role (sam-cli-user)
aws configure - Open mos UI by executing
mos - Connect ESP8266 using UART cable
- Select the UART Port
- Execute below command to register with AWS IoT
mos aws-iot-setup --aws-region us-east-1- This will create a new Thing in your AWS IoT console
- (Optional) You can manually assign it
TypeandThing groupsto it