MQTT
is a lightweight publish/subscribe messaging protocol for the Internet of Things (IoT).
The integration of MQTT to BeamNG.tech renders possible to send data from BeamNG.tech to a MQTT broker, via a sample
vehicle controller with help of the included luamqtt library.
updateData in the file MQTToutput.lua.`) and switch to BeamNG - Current Vehicle in the bottom-left combobox.controller.loadControllerExternal('tech/MQTToutput', 'MQTToutput', {uri = '127.0.0.1', topic='car_data'})
into the console to start exporting data to an MQTT server. Change the IP to the one you are using for the MQTT server.controller.unloadControllerExternal('MQTToutput').Was this article helpful?