@Dmitriy This is the new code I’m running:
#define BLYNK_DEBUG // Optional, this enables lots of prints
#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11);
#define BLYNK_PRINT SwSerial
#include <BlynkSimpleSerial.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxx";
void setup()
{
Serial.begin(9600);
SwSerial.begin(9600);
Blynk.begin(auth);
// Default baud rate is 9600. You could specify it like this:
//Blynk.begin(auth, 57600);
}
void loop()
{
Blynk.run();
// int sensorValue = analogRead(A0);
// float volt = (sensorValue/1024.0) * 5;
// int tempC = (volt - 0.5) * 100;
// Blynk.virtualWrite(0, tempC);
}
But in the serial monitor it only shows me my token. While in terminal, socat says “E open(”/dev/cu.usbmodem621", 016, 0666): Resource busy" and it tries to reconnect.
My board is the Arduino UNO.