In order to get the timestamp, I have tried to use this code, but it always fails – I only get 0:
Name(0, 'fr.pool.ntp.org') of sntp- setserver();
timer = sntp get time timetranscription();
os printf("time : percent d and percent s\n"timestyle, sntp get real time(timestyle));
I try to connect to a Server to make a https request, as you might have understand, (I'm using the functions espconn secure_***) but it's not working every time.
It may be due to the time (the certificate cannot be genuine.
Post BY: Assignment Help
Code: Select all
genrsa -out key.txt 1024
rsa -in key.txt -out key.txt
req -sha256 -new -nodes -key key.txt -out cert.csr -subj '/C=RO/ST=B/L=Bucharest/O=OneTransistor [RO]/OU=OneTransistor/CN=esp8266.local' -addext subjectAltName=DNS:esp8266.local
x509 -req -sha256 -days 365 -in cert.csr -signkey key.txt -out cert.txt
I hope that this will resolve your problem.
By: assignment help
Who is online
Users browsing this forum: No registered users and 3 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!