Myself and Rafael Richards have been looking at ways to integrate Internet of Things devices with M based technology.
Some of the results can be found below:
This repo shows a full "end to end" demo using a Raspberry Pi as an IoT device, sending data to a mqtt message broker. Mg_python is then used to read data from the message broker and write to the database. Finally mg-web is used to present the data to Grafana (graphical display tool) via a rest API
This second repo provides an alternative to mg_python, using native M code to publish to a message broker.
Hope this is useful to the community.