3,156 days ago. Still a great memory!
Group Details Private
Mod
Moderator
Member List
-
RE: MQTT-Help me understand about the MQTT Gateway.
@dpcons sensor nodes can not post a mqtt message. Sensor nodes can’t even be aware that they talk to a mqtt gateway: the nodes don’t know if the gateway is wifi, mqtt, serial or any other type.
With that said, sensor nodes can send any message to a gateway, and the gateway will forward the message on mqtt (if it is a mqtt gateway). Simplest example is probably something like https://github.com/mysensors/MySensors/blob/development/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino or https://github.com/mysensors/MySensors/blob/development/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino
-
RE: Getting system time from the controller
@dpcons try changing
unsigned long
in your sketch touint32_t
Could be that the override needs to have an exact match.
-
RE: Getting system time from the controller
I think the relevant code is here:
https://github.com/mysensors/MySensors/blob/e298769eb73ba2da781a34d66cae345c6840b7c0/core/MySensorsCore.cpp#L473but I can’t see anything that looks broken.
-
RE: Getting system time from the controller
@dpcons it could be that the gateway code for receiving time is (unintentionally) broken. I noticed that the other thread you found also was about a gateway.
I have never used receivetime myself but I am pretty sure I have seen it working for other people on regular nodes.
-
RE: Getting system time from the controller
The received message looks like this:
Received Message
Sender: 0
Last Node: 0
Destination: 6
Sensor Id: 255
Command: INTERNAL
Message Type: I_TIME
Payload Type: P_STRING
Payload Length: 10
Signing: 0
Payload: 17405944161740594416 is Thu, 27 Feb 2025 11:56:37 GMT which looks reasonable.
So question is, why doesn’t the node print the received time?
-
RE: Human presence sensors....
@CodeGarage What I want is a lion powered Sensor if possible. And that in a case I can stick to the door frame. As I cannot screw or drill into the doorframe. But I have no idea how much current that draws.
-
RE: Human presence sensors....
@CodeGarage I guess I have a lot of research ahead )
-
RE: Human presence sensors....
@CodeGarage Bot sure what you mean with a proper design of Radon and Google translator didn't help much. I have a big renovation ahead. But after that I should have a 32 square meter hobby space. That one is the first project I'll be doing over there