mongoose-os | Mongoose OS - an IoT Firmware Development Framework
kandi X-RAY | mongoose-os Summary
kandi X-RAY | mongoose-os Summary
Trusted and Recommended By:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mongoose-os
mongoose-os Key Features
mongoose-os Examples and Code Snippets
Community Discussions
Trending Discussions on mongoose-os
QUESTION
I have the following code that prints to my serial console in mongoose os. I can see the device in amazon aws, and in mdash as online. I get back a 0 from the pub and it never sends a message to aws mqtt I have subscribed to the topic in the test seciton in mqtt so not sure what I am doing wrong
...ANSWER
Answered 2020-Nov-11 at 00:17Ok it is working again, I needed to delete the device in amazon, and run the mos aws setup command again.
So the real problem was I was flashing my device each time I updated my code and it would overwrite my wifi settings, my aws settings and my mdash settings.
Thanks to help from a different source this solved it for me
QUESTION
By following this guide Sending commands to devices.
...ANSWER
Answered 2020-Sep-23 at 00:06If you need the device to always receive the payload from IoT Core, even if it was sent while the device is not connected / not responding, you should use configuration instead of a command.
Configuration is persistent in IoT Core, so it will eventually be delivered to the device even if it was non responsive.
Configuration is always sent to the device when it reconnects to IoT Core, so you'll be sure that the device will receive it, even if it was sent while the device was offline.
There is no difference between configuration and commands about the content.
It is true that you can only send 1 config/device/second, but it most cases this is enough.
QUESTION
I am trying to connect my ESP32 device to Google Cloud Platform (GCP) with Mongoose OS. I am new to Mongoose OS, but have got as far as to build and flash code as well as connection to wifi. But I get problems when I add info to the mos.yml file to connect to GCP. This is the error:
mgos.gcp.c:361 Invalid gcp.key (0xffffc200)
I have created my key pair with the following commands:
...ANSWER
Answered 2020-Mar-26 at 10:39So, it turned out I didn't need to set all that GCP info info in "mos.yml", but it was set for me when running
QUESTION
I'm using an ESP32 HiGrow Plant sensor board.
I've slightly touched this firmware : https://github.com/lucafabbri/HiGrow-Mongoose-OS-Firmware/blob/master/fs/init.js
To make it publish the sensors data via MQTT instead of HTTP.
I'm using my own mosquitto instance.
With those changes I can successfully publish every 5 seconds:
...ANSWER
Answered 2018-Aug-03 at 12:29 let ok = 1;
MQTT.setEventHandler(function(conn, ev ,edata) {
print ('MQTT event handler: connect', ev);
if (ev === 0) {
ok = MQTT.pub(topic, higrowData, 1);
print('Published:', ok, topic, '->', higrowData);
} else {
print('error');
}
}, null);
MQTT.setEventHandler(function(conn, ev ,edata) {
print ('MQTT event handler: write', ev);
if (ev === 204) {
print('Success! Going to sleep');
ESP32.deepSleep(120000000); // 120 seconds
}
}, null);
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mongoose-os
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page