Paolo's blog entries

From the category archives: Paolo Patierno

.Net Gadgeteer

M2Mqtt : support connection to a broker in IPv6

I just updated only on CodePlex (for now) M2Mqtt library (version 2.1.0.0), adding the automatic detection of any IPv6 address to connect. To determine the address class (AddressFamily), I implemented the '"Extension Method" GetAddressFamily() for the IPAddress class through the static class IPAddressUtility, necessary only because the. NET Micro Framework does not itself provide the property AddressFamily the IPAddress class. In fact, in the case of full / compact. Net Framework is returned that property while in the case of. NET Micro Framework is done by a simple search of the ":" character (separator in IPv6 addresses). 1: public static AddressFamily GetAddressFamily(this IPAddress ipAddress) 2: { 3: #if (!MF_FRAMEWORK_VERSION_V4_2 && !MF_FRAMEWORK_VERSION_V4_3) 4: return ipAddress.AddressFamily; 5: #else 6: return (ipAddress.ToString().IndexOf(':') != -1) ? 7: AddressFamily.InterNetworkV6 : AddressFamily.InterNetwork; 8: #endif ...

Read the rest of entry »

M2Mqtt library: added support for SSL / TLS!

m2mqttpngssl_icon

I finally got what I wanted to add some time to my Library M2Mqtt : support for the SSL / TLS protocol !

With this new feature , you can now connect to a MQTT broker also using SSL / TLS (for .NET Micro Framework only up to TLS1.0 ) to take advantage of its key features: data encryption and server authentication through an X509 certificate (client authentication is not supported) .

To leave free choice to the developer wanted to or not to include this feature in his project ,I tied everything to the compilation symbol "SSL" which must be defined to add such support. In this way, for some platforms with less memory (see Netduino or FEZ Cerberus in the case of .NET Micro Framework ), you can exclude it , remembering to remove all references to assemblies that run the SSL / TLS.

Of course , as well as on CodePlex, the update is also available on Nuget !

As soon as possible, I will write a new post in which I describe an example of using secure connection with an MQTT broker like Mosquitto !

M2Mqtt library is now available on Nuget !

m2mqtt_nuget

Today I published my M2Mqtt library on Nuget, besides being already available for some time on CodePlex.

I've included the compiled assemblies for the. Net Framework 4.0 and 4.5 and for the. NET Micro Framework 4.2 and 4.3.

I hope I have done something pleasing for those who until now have used it by downloading the source files directly from CodePlex.

M2Mqtt client : a "small" but useful update

I have made a "small" update on my MQTT client (now at version 1.1.0.0), adding an additional constructor on MqttClient class which has the host name of the broker as parameter (adding to the constructor that provides only the address IP). Such a constructor may be useful in all those cases in which you use a MQTT public broker , such as the Mosquitto test server that is at test.mosquitto.org.

   1: public static void Main()
   2: {
   3:     MqttClient client = new MqttClient("test.mosquitto.org");
   4:     ...
   5:     ...
   6: }

My M2Mqtt library on Channel9 !

channel9m2m_thumb[2]

The MQTT client, which I released on CodePlex that can be used with all versions of the. Net Framework specially with NET Micro Framework, was published with a blog post on Coding4Fun on Channel9 by Greg Duncan.

One of my new little project on CodePlex: M2Mqtt

m2mqttpng_thumb

I have just posted a new little CodePlex project: M2Mqtt.

It is a MQTT client (Message Queue Telemetry Transport) that can be used on all .Net platforms, obviously focused on. NET Micro Framework.

MQTT is a protocol for M2M (Machine to Machine) as part of the Internet of Things and for which lately has been a process of standardization by OASIS. Suffice it to say that thanks to his remarkable "lightness", was chosen as the protocol for the exchange of messages through the Facebook Messenger.

For further information please refer to the official website MQTT but I will not fail to publish as soon as possible a series of articles related to this protocol and to the use of the library that I just released.

I recommend .... stay tuned!

On Channel9 : Windows 8 and the .NET Micro Framework

Pete Brown on Channel9 shows us how to write Windows Store apps that use the .NET Micro Framework and advanced socket networking...

Read the rest of entry »

Pages: Previous1...2345NextReturn Top

Paolo Patierno's blog



View this page in another language:

Search blog

Archive

Turkish porno izle video site in rokettubeporno izle