Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

esp8266 register device in Cloud

Hi ,
I flashed the device using Windows flasher with the newest firmware. Everything was fine I have AP for which I can log in , but when I want to add the device to the cloud using ID and PSK , I got all the time the error " cannot add deive " , any ideas ? or maybe I'm missing something ?

Regards
Marek

Comments

  • SergeySergey Dublin, Ireland

    Can you show the exact command and the exact error you're seeing, please?

  • Hi , the problem is that each time when I want to add the device using web app on my project ( even virtual node mcu ) I have only "error adding device" message

  • SergeySergey Dublin, Ireland

    Ah. Please use miot tool for adding devices. We are working on a web UI now and parts of it may be broken.

  • Thanks , one more question when I run "miot cloud build" I got : Error: no active credentials for https://api.mongoose-iot.com , so how to set credentials for cloud build ?
    Regards
    Marek

  • SergeySergey Dublin, Ireland

    Credentials are saved in ~/.miot/credentials.json.
    Remove that file and run miot auth login to re-login to the cloud.

  • edited September 2016

    Ok I did what You have said so I can login ,build in now flash it , but still I got problem with registering the device

    Getting device vars...
    Generating device ID...
    Generating device PSK...
    Registering device at the cloud...
    Error: no active credentials for https://api.mongoose-iot.com

  • SergeySergey Dublin, Ireland

    Ok. Please run the command with miot --v 5 --logtostderr .... flags and attach the output.

Sign In or Register to comment.