I use the Arduino ESP library on ESP32 hardware, could it be used to communicate with the AsyncTCP Client library server? I am talking about non-blocking communication.

I would like to send data to the server always have timstamp but from the device that sends this data. I mean the exact time of the event, because as you know before the data will be sent and inserted into the database, the time passes.
Is there any possibility to give a timestamp from the arduino program?

I would like to send data to the server always have timstamp but from the device that sends this data. I mean the exact time of the event, because as you know before the data will be sent and inserted into the database, the time passes.
Is there any possibility to give a timestamp from the arduino program?

Are you referring to appending the timestamp along with data send. i am not sure about this. But if you want to monitor at what time the data was send you can view the data tab and check. there is few second delay between the device data send timestamp and the server data received timestamp.

I use the Arduino ESP library on ESP32 hardware, could it be used to communicate with the AsyncTCP Client library server? I am talking about non-blocking communication.

I’m not sure exactly what you are trying to do. The Cayenne ESP library connects to the Cayenne server at mqtt.mydevices.com. Are you trying to get it to connect to a local server that’s using AsyncTCP?

Or do you mean you want to try and modify the Cayenne library to use asynchronous communication with AsyncTCP? In theory, that would be possible though it would probably require a lot of rewriting the Cayenne library to work asynchronously.

Or do you mean you want to try and modify the Cayenne library to use asynchronous communication with AsyncTCP? In theory, that would be possible though it would probably require a lot of rewriting the Cayenne library to work asynchronously.

Thanks for the timestamp suggestion. We may look into adding support for that at some point in the future though it isn’t in the immediate plans. So for now the only data timestamps would be the ones shramiksalgaonkar mentioned on the data tab.

I would do it so that everything would work as it is now, only in the content of mqtt message I will provide with the value of timestamp and tick, then the server will put it in the database. If there is no additional timestamp value then server will insert the timestamp as before.

Looks like it just dropped off the Slack history, but one of the Cayenne team members posted that it was possible (or soon to be) to send time stamps when using JSON to send data to the Cayenne servers. I think it was @ecoqba?

The simplest and fastest solution would be to add a new table to the database so as not to rebuild the columns of the existing database. The new table would have relations to the entry with the value and timestamp and tickstamp. Everything would work so far only projects that transmit timestamp would have recorded these values in the new table,