Want the MQTT all messages on the server (mosquittto) stored in the database, the store is how to achieve? Originally MQTT service does not support directly interact with the database,
CodePudding user response:
Connect to the database in the callback function bai, plus the write operation