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

'class HardwareSerial' has no member named 'printin'

I tried to compile the code but I have a problem with my code which are :
‘class BlynkWifi’ has no member named ‘virtualWire’
‘class HardwareSerial’ has no member named ‘printin’

this is my code :

#define BLYNK_PRINT Serial//// comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <SoftwareSerial.h>
#include <OneWire.h>
#include <DallasTemperature.h>
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";

/* Wifi credentials */
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxxxxxxxxxx";


SimpleTimer Timer;

#define ONE_WIRE_BUS 2 // DS18B20 on Arduino pin2 corresponds to D4 on physical board “D4 pin on the nodemcu Module”
OneWire oneWire (ONE_WIRE_BUS);
DallasTemperature DS18B20 (&oneWire);
float temp;
float Fahrenheit=0;
void setup ()
{
  Serial.begin (115200);
  Blynk.begin (auth, ssid, pass);
  DS18B20.begin ();
  Timer.setInterval (1000L, getSendData);
}
void loop ()
{
  Timer.run (); // Initiates SimpleTimer
  Blynk.run (); 
}
/**************************************************************************
*Send sensor data to Blynk
**************************************************************************/
void getSendData ()
{
  //DS18B20.requestTemperature ();
  float temp = DS18B20.getTempCByIndex (0); //Celcius
  float Fahrenheit = DS18B20.toFahrenheit (temp); //Fahrenheit
  //Serial.printin (temp);
  Serial.printin (Fahrenheit);
  Blynk.virtualWire (V3, temp); //virtual pin V3
  Blynk.virtualWire (V4, Fahrenheit); //virtual pin V4
}

@mr.fsool please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct character on your keyboard.

Pete.

okay done already

You are getting the compiler message because there is no such command as Serial.printin()

I assume that you actually mean Serial.println()

Pete.

Yeah sir thank you

but what about another error message this one :(‘class BlynkWifi’ has no member named ‘virtualWire’

)

Same issue, no such command as Blynk.virtualWire

Maybe you should try looking at the sketch builder examples:

and the documentation:

(scroll down to the BLYNK FIRMWARE) section.

Pete.