Paolo's blog entries

From the category archives: Paolo Patierno

MQTT

M2Mqtt : my MQTT client on Channel9 with the latest news !

m2mqtt_channel9

This time again with great pleasure, my M2Mqtt library (MQTT client for all versions of the. Net Framework) is mentioned in the "fardware friday post" on the blog Coding4Fun on Channel9 at the following link !

The post highlights the main latest features, support for security through SSL / TLS protocol and event management asynchronously. It is also highlighted my demo on the use of the MQTT client with 2lemetry platform.

The satisfaction is double in knowing that my work is attracting a lot of interest and that the library is increasingly being used. Obviously, this leads me to improve it and in fact approaching many surprises and improvements!

Occhiolino

Internet of Things : MQTT with 2lemetry platform

Now you can find numerous online platforms that offer the service of "device to the cloud," in order to acquire data from remote devices, save and expose them to other devices: one of these is 2lemetry. It provides a RESTful interface over HTTP and an MQTT interface that we are going to use with the M2Mqtt client library. First you need to register online : At the end of the registration, you can log in to your account page and view some information, including the most important one is the "domain", which will be the root of all topics on which we are going to publish or receive messages via MQTT. At this point we can move immediately to develop a simple application by choosing between all platforms supported by the M2Mqtt library (.NET Framework, .Net Compact Framework or. Net Micro Framework). In a real case, we use the Netduino Plus board with a temperature sensor (usually the TMP102 already widely used in previous posts and where the driver can be found in uPLibrary) to send the data collected onlin ...

Read the rest of entry »

M2Mqtt : update on the Keep Alive management of the MQTT protocol

I made a bug fix on my Library M2Mqtt (MQTT client) that allows you to better manage the case where the client does not transmit anything for a time equal to the  "keep alive period " and the keep alive thread, whose task is to ping the broker to keep the connection alive, does not receive anything within the timeout period (ex. broker shutdown, network disconnection, ...).

The update is already available on CodePlex and Nuget !

MQTT over SSL / TLS with the M2Mqtt library and the Mosquitto broker

After releasing the new version of my M2Mqtt library with support for SSL / TLS with server-side authentication, the time has come to show you an example of use. Choose and install the broker: Mosquitto First we have to choose an MQTT broker among those available but unfortunately no one is developed using the .Net Framework . Discarding more complex solutions , especially with regard to the installation and configuration , such as IBM Websphere , we can take into account to brokers like RabbitMQ , HiveMQ or Mosquitto. In this case , my choice was Mosquitto that we can download from the official web site for various operating systems based on Linux , as well as there is a convenient installer for the Windows environment . In fact, for Windows there are two installation modes: the first uses an installer in which the broker is compiled natively while in the second case is based on the Cygwin provides a Linux-like environment for Windows. It 'obvious that the first mode is the most simple and immediate . Afte ...

Read the rest of entry »

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 »

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.

My CodePlex projects : upgrade to .Net Micro Framework 4.3

I let it go longer than expected but finally I did ... as they say ... better late than never!

All my projects on CodePlex have been updated to support the latest versions of. NET Micro Framework, the 4.2 and 4.3, but above all Visual Studio 2012!

I’m speaking about :

I hope I have done something pleasing for those who have used them until now.

MQTT and .Net Micro Framework with Netduino Plus board : a simple alarm system !

Since I loaded my small MQTT client. Net Framework (Desktop, Compact and Micro) on CodePlex, I have never posted a simple example of the use of time for questions. In this post, we shall see how it is possible to realize a "simple" alarm system consists of two boards Netduino Plus both connected in the network, through the first board we are able to detect a movement through the use of a PIR (Passive InfraRed) sensor while the second is capable of receiving the notification of the detection (in this case does is to write it on the console Debug). Obviously, the second board may be trivially replaced by a smartphone through which we could be alerted in real time of the intrusion. Regarding the broker, it is the simple RSMB (Really Small Message Broker) of IBM which can be used in a totally free for non-commercial purposes and downloaded here. You do not need to install it but, in the case of Windows, is a simple executable to be launched in order to have a broker and MQTT listening on the default port (1883) ...

Read the rest of entry »

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!

Pages: Previous1234NextReturn Top

Paolo Patierno's blog



View this page in another language:

Search blog

Archive

Turkish porno izle video site in rokettubeporno izle