BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Reading http data

#1

Is it possible to read data on the LCD, e.g. from the address:
http://blynk-cloud.com/xxxxxxx/get/v1

0 Likes

#2

You are not reading from the LCD, but from the virtual Pin that carries the data. So depending on your settings for the LCD (Simple or Advanced) you will get different results.

For example with Advanced, you will see the positioning info and may only see the current character(s) being “placed” when using the advanced mode

http://xxx.xxx.xxx.xxx:8080/xxxxxxxxxx/get/V70

["p","1","0","Press START"]

image

["p","15","1","▍"]

image

0 Likes

#3

can you send an example code?

0 Likes

#4

I just did… use your own IP (or blynk-cloud.com), AUTH and Virtual Pin… It helps to have a Widget set with same vPin as you use :wink: and come form of code to fill it with data.

https://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=Widgets%2FLCD%2FLCD_SimpleModePushing

0 Likes

#5

I mean where to enter html ( http://xxx.xxx.xxx.xxx:8080/xxxxxxxxxx/get/V70 ) in the program code and read the data on the display.

#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

BlynkTimer timer;

void sendSeconds() {
  Blynk.virtualWrite(V0, millis() / 1000);
}

void sendMillis() {
  Blynk.virtualWrite(V1, millis());
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Setup a function to be called every second
  timer.setInterval(1000L, sendSeconds);
  // Setup a function to be called every second
  timer.setInterval(1000L, sendMillis);
}

void loop()
{
  Blynk.run();
  timer.run();
}**strong text**
0 Likes

#6

I don’t really know what you’re trying to achieve here - and why.
Maybe if you could explain what you’re doing, we could suggest a simpler solution.

Pete.

0 Likes

#7

I want to display at home an oled termperature external display from another disc (wemos)

0 Likes

#8

Why not use the bridge widget?

2 Likes

#9

You don’t use this with Device code :sweat_smile: … that is an API command for use in a Web Browser, and with variations of syntax, in 3rd party IFTTT type processes.

1 Like

#10

Yes, that’s what Bridge is for.

Pete.

2 Likes

#11

Yes

0 Likes

#12

If you ever get the chance to do the Tower Bridge tour you should. Those high level walkways between the two towers have glass floors, which gives an amazing view as you walk across.

Pete.

1 Like

#13

:slight_smile:

0 Likes