Thanks Dave. Got Red-Node and Mqtt working on windows Used nodejs to install red-node and windows install for windows.
This is the code iâm using, does the wifi onbaord allow it to operate as webserver and mqtt client\server or can i only do one?
Awesome switchesâŚgoign to but some to see how they workâŚwant receiver are you using for switches.
if (Program.client == null)
{
// create client instance
Program.client = new MqttClient(IPAddress.Parse("10.0.13.181"));
// register to message received
Program.client.MqttMsgPublishReceived += client_MqttMsgPublishReceived;
string clientId = Guid.NewGuid().ToString();
Program.client.Connect(clientId);
}
Program.client.Publish("/home/temperature/", Encoding.UTF8.GetBytes("33"), MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE, true);