mqtt-mysql
mqtt-mysql copied to clipboard
Problem with insert to db
Hi,
I have MySQL server on another server in my network. I configured your script to wark with this server. And it's work, but not exactly good.
From MQTT client broker got this values:
{"idx":10,"nvalue":0,"svalue":"6.70"}
{"idx":11,"nvalue":0,"svalue":"7.90"}
But in databes I have only first value.
Both values are sent almost at the same time. I do not know if there is a problem here.
Could you help solve this problem?