- I found that I can check like this
if (_MQTT_client.connected())
{
}
if (_MQTT_client.connected())
{
}
@carywin Yes I know. I had my own "firmware" for few years but I want to use something mainstream that will be easier to maintain (by someone else ).
@bjacobse There is no point to measure it, he needs to put the energy in fixing the wall, permanently
@carywin Yes I know. I had my own "firmware" for few years but I want to use something mainstream that will be easier to maintain (by someone else ).
@mfalkvidd I was talking about MY_NODE_ID As each device will be a gateway with onboard sensors only they all have I think 1 as ID by default and that can not be changed.
MY_MQTT_CLIENT_ID is different as I create different MQTT user/pass for each device
For 2. I created a fake sensor that I update with 1 each minute.
present(99, V_VAR1, "Status");
Then at the software side (NodeRED) I create additional logic to find out if the device is dead.
@mfalkvidd Yes I settled for different MY_MQTT_PUBLISH_TOPIC_PREFIX. per device. but the Client_ID can not be defined for gateway...but that is not a problem now
if (_MQTT_client.connected())
{
}
Is it possible to use the sensebender board as MQTT gateway? Not Ethernet?
I try to rebuild my custom Arduino nodes with MySensors platform. Need some input as I can not recreate all functions I need.
I have 3 Arduino/ethernet boxes. By removing radio definitions I can make them act as individual gateways with their own root MQTT topic. In essence, they will have 6 digital inputs and 8 outputs/relays (will see how many pins are free at the end).
I selected different MQTT topics for each gateway as they all have NODE_ID 0 (hardcoded by MySensors). How to control/differentiate if all 3 post to the same topic? By sensor ID?
There is no support for MQTT Last Will in MySensors from what I searched... that is a pity. I will probably invent phantom sensor as a heartbeat that will contain a random value, then inspect that on a higher level (NodeRED most likely)
Is there a way to know the MQTT status from inside the node? For example, if my node/gateway loose Ethernet or the MQTT broker is down I want to set relays to a safe state.
Is there a watchdog implemented in the Arduino code by default? I know that Arduino can reset itself if stuck for longer then 8 secs (not getting confirmation message).
@anticimex I was no talking about the hardware specs, but about the limitations you have with each choice of hardware as mysensor gateway
@anticimex said in Best hardware for gateway with encryption and signing:
SenseBender gateway
There should be a table with all the features of each gateway so people can choose easily.
I am looking for Gateway that will get me the results to MQTT but will support encryption + signing. That mean it should be easy to add new signatures (recompile/reflash) the module
I suppose if I use Sensebender with LAN module it will be a pain to do that
Is this doable if I use Orange zero as USB host for the Sensbender and let it act as serial gateway, then convert serial to mqtt with software on the Linux side? Also is it possible to reflash it easily this way? I do not want to rewire the hardware each time a add new node.