I get the same error, using cloudmqtt and also using a python mqtt broker that i have locally installed. It never completes the connect part. Using 2.0 API
Posts made by elmezie
-
RE: [SOLVED] Cannot get GwWS5100MQTT to connect to cloudmqtt.com
-
Over the Air Updates Guide?
How does one go about doing OTA firmware updates with an arduino pro mini 3.3v 8mhz. I've searched the forums and see many topics on the subject but was unable to find a cohesive guide and didnt really get a clear picture from the topics I read.
Anyone willing to help with a guide?
-
RF24 Audio Transmission
I am using an electret microphone breakout from sparkfun ( https://www.sparkfun.com/products/9964?gclid=Cj0KEQiAxMG1BRDFmu3P3qjwmeMBEiQAEzSDLiq_CPMhV8TWyShMGB-krM6GjqS_7NCxB_ZYmxmTWusaAk048P8HAQ ) .
Is it possible to use mysensors code to send audio data from the microphone to the gateway?
Would it be better to use the RF24Audio library directly , instead of using mysensors? -
Node Auto ID not firing requestNodeId()
I start my node with
gw.begin();
And I would assume that would send out a message to the controller to request an id. But that does not appear to happen.
MySensors.cpp shows my nc.nodeID as
Node id (0) : 0
So the code in MySensors.cpp, never fires the requestNodeId() function to retrieve an id since nc.nodeId = 0 and not AUTO.
How do I get nc.nodeId to equal AUTO. I am not seeing anywhere in the MySensors code where that would get written to EEPROM. Am I doing something wrong? Overlooking something?nc.nodeId == AUTO && isValidParent(nc.parentNodeId))
if (_nodeId != AUTO) { // Set static id nc.nodeId = _nodeId; // Save static id in eeprom hw_writeConfig(EEPROM_NODE_ID_ADDRESS, _nodeId); } else if (nc.nodeId == AUTO && isValidParent(nc.parentNodeId)) { // Try to fetch node-id from gateway requestNodeId(); }
-
RE: Unable to receive messages after sleep?
Yes the sleeping is to save battery.
I do have an incoming message, however I forgot to include it in the example.When they arduino wakes back up and goes into the 10second wait , it no longer receives messages.
Is there anything you can see in the code that would cause that?
Does the radio automatically power back up to rx/tx when the sleep is over?
-
Unable to receive messages after sleep?
I have a node that waits/processes, then goes to sleep in a loop.
When the node wakes back up,The node is no longer able to receive data sent from other nodes, the node is only able to send data.Is there something I'm doing wrong here?
Also is this incorrect procedure? Instead of the node having data sent to it, should it sleep then wake up and request data from the controller?#include <MySensor.h> #include <SPI.h> #define ID 0 #define OPEN 2 #define CLOSE 0 MySensor gw; MyMessage msg(ID, V_TRIPPED); void setup() { Serial.begin(115200); Serial.println("Starting up Sensor Test"); gw.begin(incomingMessage,1,false); gw.present(ID, S_DOOR); } void loop() { // // Process sensor messages gw.wait(10000); gw.sleep(3000); Serial.println("Starting back up here"); }
-
Arduino Sleep / Wake On Interrupt?
Hello,
Is it possible to have the arduino in sleep mode and wake up when a message arrives to the NRF24l01 Radio?I have PIN 8 (IRQ) of the NRF24l01 connected to PIN D2 of the sleeping nano node. When the sleeping nano node goes to sleep, I send a message to the node from another , however the sleeping node does not awake when this happens. Is this possible to do?
Below is the code I am using, thanks!
#include <MySensor.h> #include <SPI.h> #define ID 0 #define OPEN 2 #define CLOSE 0 MySensor gw; MyMessage msg(ID, V_TRIPPED); void setup() { Serial.begin(115200); Serial.println("Starting up Sensor Test"); gw.begin(incomingMessage,1,false); gw.present(ID, S_DOOR); } void loop() { // Process for 10 Seconds gw.wait(10000); // Sleep 10 Seconds gw.sleep(2, CHANGE, 10000); } void incomingMessage(const MyMessage &message) { if(message.getInt() == 1){ Serial.println("Received command"); gw.send(msg.set(OPEN)); delay(250); }