B
B
Babay2019-04-19 14:44:13
Arduino
Babay, 2019-04-19 14:44:13

How to transfer data from max6675 to a web page?

There is an esp8266 board with a max6675 connected, I need to transfer data from a thermocouple to a web page. In the future, you need to show the temperature in real time. Perhaps there are better ways?
Example of my code:
HTTP.on("/config.json",handle_ConfigJSON);
void handle_ConfigJSON(){
String Celsius = celsius;
String json = "{";
json += "\"CELSIUS\":\"";
json += (String(celsius);
json += "\"}";
HTTP.send (200, "text/json", json);
Linked Libraries:
#include MAX6675_Thermocouple.h>
#include ESP8266WiFi.h
#include ESP8266WebServer.h
#include ESP8266SSDP.h
#include FS.h

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2019-04-19
@SilenceOfWinter

MIME type "application/json", if an external server is planned, then some kind of verification key is clearly needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question