Skip to content

registration.md

AndroAdi edited this page Jan 10, 2020 · 2 revisions

Device registration

Step 1. Complete steps 1-7 quickstart guide

Step 2. Login to the https://dash.mongoose-os.com/, register a new device. Left Click on a "Token" link to copy it to the clipboard.

Step 3. Configure device:

mos config-set dash.enable=true dash.token=TOKEN

Done! Now your device should appear "green" (online) on a dashboard.

Troubleshooting

If mos config-set command on Step 5 fails for you, complaining about non-existing variables, then your app needs to be rebuilt with the dash library. Edit your app's mos.yml:

libs:
  ...
  - origin: https://github.com/mongoose-os-libs/dash  # <-- Add this line!

Then, mos build, mos flash, and repeat registration from Step 3.

Using device simulator

If you don't want to use a real device for some reason, there is a POSIX program for Linux/Mac/Windows that could be used to simulate the device. Clone it from https://github.com/cesanta/mongoose-os-device-simulator.

Then simply run make. You'll the the access token prompt:

$ make
cc -W -Wall -g -O2 -D MG_ENABLE_CALLBACK_USERDATA=1 -D MG_ENABLE_SSL -DMG_SSL_IF=MG_SSL_IF_MBEDTLS -lmbedtls -lmbedcrypto -lmbedx509 main.c mongoose.c -o simulator
./simulator
Enter access token: 

Login to dash.mongoose-os.com, choose some registered device, copy the access token to the clipboard, paste into the prompt and press enter.

CCM

kiwi

mdash

mongoose-os





ADS1X1X I2C ADS7843/XPT2046 SPI APDS9960 I2C ATCA BH1730 sensor BME280/BMP280 BQ27421 Barometers Bosch BM222 CCS811 I2C DHT DS3231 I2C Dallas RMT ESP32 touch sensor HTU21D(F) I2C ILI9341 SPI IMU INA219 I2C INA226 I2C INA3221 I2C Inventek ISM43xxx WiFi MAX7219 I2C MAX72xx LED matrix MCP23XXX I2C MCP9808 I2C MQ135 gas sensor Neopixel Onewire RMT PCF857X I2C SHT31 I2C SSD1306 OLED STMPE610 SPI Si7005 sensor Si7021 I2C TI TMP006 temp sensor VEML6075 I2C VFS (LittleFS) VFS (RAM) VFS (SPI NOR Flash) VFS (SPIFFS) VFS (Winbond W25XXX) VFS (another device) VFS (encryption) VFS bh1750 I2C



RPC core RPC loopback RPC over BLE GATT RPC over MQTT RPC over UART RPC over UDP Service - ATCA Service - Config Service - Cron Service - FS Service - GATT client Service - GPIO Service - I2C Service - OTA Service - WiFi


uart-gateway

Clone this wiki locally