Thanks for the feedback. If you have comments, send me an emeil. As for multiplatform, I'm going to rewrite the code in ASP.NET5, once it exits beta status.Theoretically, this will make it possible to run the system on Linux and Mac. I wrote code with the future in mind.
@Yveaux said in serial, Ethernet to MQTT:
Of course, but MySensors MQTT gateway runs just as fine when connected over cabled ethernet, as when connected over wifi
I do not know that
Now on this tool, I do not see much benefit from ethernet to MQTT
Still, it is good from serial to MQTT.
@hek I have two sensors in my network ( temp , Hum ) and motion detection. both working in auto mode and request node id from controller ( raspberry pi ) node via gateway . but unfortunately, reponse code of both nodes get same node id 1.
may be bug in sendNextAvailableSensorId() function response.
any idea?
thanks
Hi. It's long time .. but standard function is : gw.processRadioMessage();
and I make changes in source code in MyGateway.cpp to this :
char MyGateway::processRadioMessage() {
char isMessage=0;
if (process()) {
// A new message was received from one of the sensors
isMessage=1;
MyMessage message = getLastMessage();
if (mGetCommand(message) == C_PRESENTATION && inclusionMode) {
rxBlink(3);
} else {
rxBlink(1);
}
// Pass along the message from sensors to serial line
serial(message);
}
checkButtonTriggeredInclusion();
checkInclusionFinished();
return isMessage;
}
But in new library is not file MyGateway.cpp .. then I don't now ..
using is :
if (gw.processRadioMessage()==1) {..}
regards..
there is possible make easy gateway .. controler .. to control only light for example.. then we don't need external controller .. etc..
@jkandasa said:
@pebri86 Yes, I will implement smartSleep feature. But it will take bit more time. may be after release. Please raise a ticket for this feature request to follow. https://github.com/mycontroller-org/mycontroller/issues
between what type of actions do we(controller) need to do with smartsleep nodes?
Actually all action like reboot, erase configuration, or send values to node since all battery node do sleep all the time and can't response while sleep.
Nice work so far @wint0178, great that you try expanding on the examples. Sorry for the late reply.
If you look at https://github.com/mysensors/MySensorsArduinoExamples/blob/bba998bce09bc5139eb4ca7a05b0279f4083ff88/examples/PressureSensor/PressureSensor.ino#L90 you see where the existing child ids are defines. You just add another one for the gas sensor, with a unique number (incrementing by 1 is an easy way).
Try that and report back on your result. If something is unclear, just post a followup.