Added MQTT support

No Brian, my question was:

“…otherwise the default is it sends the clientraw.txt file contents”

In this case, are you sending the content of the clientraw.txt as a single message or as a collection of messages, one for each measurement?

Example:

Southampton/WeatherDisplay/clientraw = “12345 1.4 2.6 277 15.8 42 1010.7 0.0 11.4 254.5 0.00 0.00 21.3 47 100.0 0 0.0 0 0 0.0 -54.4 255.0 -65.0 -67.8 -100.0 -100.0 -100 -100 -100 15 29 57 N3KJE-3:29:57_PM 0 100 10 4 0.00 0.00 100 100 100 100 100 15.8 14.5 16.3 4.2 0 Sunny/Dry -0.3 2 2 1 1 0 0 2 1 1 1 0 1 1 2 2 3 3 3 3 3 10.0 2.9 5315.8 4/10/2019 15.3 2.8 16.3 4.2 2.2 3 0 2 0 2 3 0 3 1 2 15.9 15.5 15.4 15.6 15.4 15.4 15.6 15.6 15.7 15.8 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 16.3 4.2 15.8 6.1 0 — — 316 0 0 -100.0 -100.0 22 -100 -100 -100 -100 733.0 22.4 20.0 21.5 1011.0 1006.3 10 2:43_PM 2:43_PM 23.5 3.1 6.9 1.9 4 2019 0.0 -1 -1 -1 290 294 236 263 302 305 304 267 92 277 0.0 255.0 1.6 10.0 40.18528 75.02556 0.0 91 40 0.0 5:49_AM 0.0 0.0 0.0 0.0 0.0 0.0 25.2 2:06_PM 5:49_AM 312 !!C10.37S93!!”

or as

Southampton/WeatherDisplay/ID_code = “12345”
Southampton/WeatherDisplay/Average_windspeed = “1.4”
Southampton/WeatherDisplay/Gust = “2.6”

Thanks
Renato