Netduino home hardware projects downloads community

Jump to content


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

piiper

Member Since 13 Feb 2012
Offline Last Active Apr 24 2017 04:09 PM
-----

#65213 M2Mqtt Library

Posted by piiper on 16 June 2016 - 08:35 AM

This problem has nothing to do with SSL, as long as you are not using secure connections.

 

The library does not work with Netduino1plus and 2 plus because of "Environment.TickCount". This throws the "'System.NotSupportedException". Somehow it's not available on Netduino platform but it's included in .net micro framework.

 

If you still want to use the library replace all "Environment.TickCount" with "(Int32)(DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond)". There are 11 replacements to be done. After this the M2Mqtt library works fine.




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.