Sending String to virtual pins

I thought sending Strings to virtual pins is possible, however when I use the following code:

Blynk.virtualWrite(V10, “NE”);

the code compiles well, but the Wemos crashes on this line. I got something on the serial monitor like:

Soft WDT reset

stack>>>

ctx: cont
sp: 3ffff5e0 end: 70be830b offset: 01a0
3ffff780: 00000000 00000000 3fff04b4 402047bd
3ffff790: 01289486 00000000 3fff04b4 4020a07a


40003e40: 13c6f512 0c2d0000 07c5013d 0b12260ð
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

Am I doing something wrong?

Posting your whole sketch might help.

Is it in EXACTLY this format, because the quotation marks you’ve used are the wrong type, but I would have expected this to be picked-up as a compiler error.

What Blynk library version are you using?

Pete.

It is exactly this format. I am using BlynkSimpleEsp8266.h, the Blynk version installed is 1.1.0. I used the double quotation marks, the same as I use with the Serial.println("…") command. Is that wrong? Which should I use then?

That’s right, but make sure that you are using the right one. You can try copy and paste. If that doesn’t work, post your whole sketch.

The symbol in your first post is this:

and in your post about Serial.println() is this:

"

The two are deferent. It I paste them side by side into Word and increase the font size you’ll see the difference…

image

You need the straight quotation marks (the second one in the image above).

Pete.

Thank you for your help.
I don’t know why, but I tried using another Wemos and now it is working, so I think the Wemos was internally not all OK.

1 Like