Hi everyone,

I am working on the example application SendDataOverMQTT, I have enabled 3 sensors (i.e., BMA280, BMM150, BMG160). I am using a python MQTT client to retrieve the sensor data. The application is working prefeclty fine. However, i want to measure the Timestamps for each sensor sample, could anyone guide me from where i should start?

Thanks.

0 (0 투표)
RE: Measuring relative timestamps. (SendDataOverMQTT)
응답
19. 8. 9 오전 9:00 as a reply to Muhammad Salman Shaukat.

Hi Muhammad,

To do this, you should configure the SNTP server in the AppController.h.
This works well for me:
#define SNTP_SERVER_URL "0.de.pool.ntp.org"
#define SNTP_SERVER_PORT 123

Then look at file "XDK_SNTP.h". The APIs are very well described there.

regards

Saeid

+1 (1 투표)
RE: Measuring relative timestamps. (SendDataOverMQTT)
응답
19. 8. 9 오후 2:58 as a reply to Saeid Kajlar.

HI saeid,

Thanks for your response. I tried to implement SNTP server solution, i however, i got the "Heap Issue"  problem.

Any idea about this issue ? thanks

INFO | XDK DEVICE 1: WLANPersonalWPA2Connect : Connected to WPA network successfully. 
 INFO | XDK DEVICE 1: cert. version     : 3
 INFO | XDK DEVICE 1: serial number     : A6:B4:3E:B7:00:AE:56:25
 INFO | XDK DEVICE 1: issuer name       : C=in, ST=tn, L=cbe, O=bosch, OU=rbei, CN=192.168.1.140, emailAddress=priygovind17
 INFO | XDK DEVICE 1: subject name      : C=in, ST=tn, L=cbe, O=bosch, OU=rbei, CN=192.168.1.140, emailAddress=priygovind17
 INFO | XDK DEVICE 1: issued  on        : 2019-01-29 11:40:07
 INFO | XDK DEVICE 1: expires on        : 2024-01-29 11:40:07
 INFO | XDK DEVICE 1: signed using      : RSA with SHA1
 INFO | XDK DEVICE 1: RSA key size      : 2048 bits
 INFO | XDK DEVICE 1: basic constraints : CA=true
 INFO | XDK DEVICE 1: crt content:442  . Setting up the SSL/TLS structure... ok success
 INFO | XDK DEVICE 1:   !  mbedtls_x509_crt_parse Succeeded
 INFO | XDK DEVICE 1: ----- HEAP ISSUE ----

 

0 (0 투표)