Hi Valkyrie
Sorry its took so long for me to get back and thanks for the TCP example!
The problem I am having is that the M2Mqtt library uses System.Net.Sockets and as I have a very limited understanding of how TCP works I am struggling to identify the parts of mIP I need to use to replace the TCP class (MqttNetworkChannel) in the M2Mqtt project and how to go about implementing them.
In your example you clearly show a way of creating a socket, but I don't understand how you achieved this or how it can be extended to cover the scenarios required in the Mqtt TCP class.
For example System.Net.Sockets provides:
.Send()
.Recieve()
.Available()
.Connect()
.Close()
Which are used in the MqttNetworkChannel or TCP class.
It also seems that the Send, Receive and Available methods return an int value of the number of bytes sent, left in the buffer or available to be received.
What I would like to know is, is there any way I can achieve this with mIP?
I would very much like to implement your mIP library with mqtt and appreciate any help you can provide
Thanks again for your help and I hope with your assistance I can give people using any type of netduino or other boards the ability to use pub sub messaging.
Andy