Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 17 Dec 2011
Offline Last Active Private

Topics I've Started

M2Mqtt Library

17 July 2015 - 10:57 PM

public static void mqttSubscriber()
    // create client instance
    MqttClient client = new MqttClient(IPAddress.Parse(MQTT_BROKER_ADDRESS));

    // register to message received
   client.MqttMsgPublishReceived += client_MqttMsgPublishReceived;
   string clientId = Guid.NewGuid().ToString();

   // subscribe to the topic "/home/temperature" with QoS 2
   client.Subscribe(new string[] { "/home/temperature" }, new byte[] { MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE });

   static void client_MqttMsgPublishReceived(object sender, MqttMsgPublishEventArgs e)
     // handle message received

I am trying to use the M2Mqtt Library written by Paolo which I downloaded from codeplex.

I extracted the library and added M2Mqtt as a Project to Solution Explorer.


In my main project I have added the code listed above.

I am getting an error saying MqttClient not found am I missing a directive or a reference?


This is the first time I have tried adding a library and I'm guessing I'm not doing it right, can someone point me in the right direction?




1-Wire DS18B20 Does it work on a Netduino Plus 1?

14 April 2015 - 09:46 PM

Hi all,

I've been reading thru tons of threads on the DS18B20 with the Netduino, but am confused as to whether it should or shouldn't work on a plus 1.  The firmware has been updated to 4.2  


I have added the Microsoft.SPOT.Hardware.OneWire to references and the sample code that I've found appears to build and deploy ok, but I get a  System.NotSupportedException on the first statement that accesses the OneWire Device   ... if (OneWire.touchReset() > 0)


In reading thru CW2's Alpha One Wire post I get the impression that his fix works on 4.1.1 but not 4.2 


Does anyone have this working on a Netduino Plus 1 with 4.2?


LM35 & a PhotoCell

31 January 2015 - 05:11 PM

I have a ND+v1 using 4.2 firmware.  I have a LM35 temperature sensor wired to analog pin 5 and a photocell wired to analog pin 0.  The temperature sensor works great until I connect the PhotoCell then the temp immediately jumps anywhere from 10 to 30 degrees. 


The temperature sensor logic is throwing away the first reading and then averaging the next 10 readings and it's consistent and  accurate.


The photocell logic is triggered maybe once a day so it's not doing a lot of readings, it just has to be connected to bother the LM35.


I've read many articles but haven't been able to figure this one out.  Can anyone advise?


RF Link InterruptPort too slow for Weather Stations?

11 January 2015 - 05:16 PM

I have a Netduino Plus v1 and multiple Acurite Temperature Sensors.  I have found a couple great threads that decode these sensors on an Arduino but not much on decoding these sensors on the Netduino.


After about 100 interrupts I see a message regarding allocation failed for 5 blocks messages, this leads me to believe the Netduino is to slow to handle all the interrupts(?) and maybe this is the reason I can't find Netduino examples.   


Can the Netduino be used by these sensors or am I just missing something? 

Thanks for your thoughts. 





Email SMTP ToolBox looking in wrong directory

27 October 2014 - 10:17 PM

I know this is gonna be one of those silly gotchas. 


I downloaded & installed .NET Micro Framework Toolbox from CodePlex using the installation file approach.

It appears to have installed correctly.  Then I added the sample code to my program and after awhile got the Using and References all set.


Deployed my program to the netduino Plus 1 in debug mode, when the code gets to SMTP_Client.Mailcontact... it can't find the source because it's looking in D:\projecten\garrcomm  .... which I'm pretty sure is Stefan's directory


How do I change it to look where I installed it?  Anyone know what I did wrong?









home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.