How to GET the time on https

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
PabloOyarzo
 
Posts: 36
Joined: Sat Mar 01, 2014 7:42 am

How to GET the time on https

Post by PabloOyarzo »

Im using an ESP32 with Arduino Tried the example from the library but its using MQTT. I am doing multiple .save on 4 values and when I added the example time which attaches it to the handler I get multiples responses back.

Is thera a way to do a single GET and get a single response?

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: How to GET the time on https

Post by adafruit_support_carter »

Checkout how the code from this guide uses AIO to get time:
https://learn.adafruit.com/super-simple ... -using-aio

See how the TIME_URL is setup. The &fmt parameter can vary. That code uses a format that makes parsing the values easy.

User avatar
PabloOyarzo
 
Posts: 36
Joined: Sat Mar 01, 2014 7:42 am

Re: How to GET the time on https

Post by PabloOyarzo »

The only issue is that code is on python, not on C++ for arduino

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”