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.

No device id problem

A little problem with last and previouse firmware on NodeMCU board ESP12.
I have no device ID to connect to cesanta cloud

CONSOLE INPUT:

Mongoose IoT Firmware - see documentation at https://cesanta.com/developer/fw
==> Sys:
{"conf":{"conf_acl":"","console":{"file_cache_max":25,"mem_cache_size":256,"timeout":10,"send_to_cloud":true},"sys":{"wdt_timeout":10},"debug":{"factory_reset_gpio":-1,"enable_prompt":true,"stderr_uart":1,"stdout_uart":0,"level":2},"clubby":{"ssl_client_cert_file":"","ssl_ca_file":"","ssl_server_name":"","max_queue_size":10,"memory_limit":15360,"cmd_timeout":300,"reconnect_timeout_max":60,"reconnect_timeout_min":10,"backend":"//api.cesanta.com","device_registration_url":"http://cloud.cesanta.com/register_device","device_auto_registration":true,"device_psk":"","device_id":"","server_address":"api.cesanta.com:80","connect_on_boot":true},"tls":{"ca_file":"ca.pem"},"update":{"ssl_client_cert_file":"","ssl_ca_file":"","ssl_server_name":"","update_to_any_version":false,"server_timeout":10},"http":{"hidden_files":"","upload_acl":"","listen_addr":"80","enable":true},"wifi":{"ap":{"dhcp_end":"192.168.4.200","dhcp_start":"192.168.4.2","gw":"192.168.4.1","netmask":"255.255.255.0","ip":"192.168.4.1","max_connections":10,"channel":6,"hidden":false,"pass":"Mongoose","ssid":"Mongoose_??????","trigger_on_gpio":-1,"keep_enabled":true,"enable":true},"sta":{"pass":"","ssid":"","enable":false}}},"ro_vars":{"fw_id":"20160426-093822/beta4@06cbd174","fw_timestamp":"2016-04-26T09:38:22.080412","fw_version":"20160426093822","arch":"esp8266","mac_address":"5ECF7F13984F"}}

No device id. Generate one by calling registerDevice()
No app.js, running demo...

This is Mongoose IoT Firmware 20160426093822 (esp8266)

Below you should see a JS prompt, feel free to play with it.
sendRandomData() will send some random data to the cloud.

[31924/484] $ registerDevice()
undefined
[29444/684] $

Sign In or Register to comment.