Hi there, I recently started sniffing around with Blynk and wanted to turn a 433Switch On and Off with the help of an Adafruit Huzzah ESP8266 and a 433MHZ transmittor. I succeed with an Arduino Uno but not with an ESP. When I execute my coding, my ESP keeps hanging and shows strange characters. Could you possibly help me?
My Code:
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <NewRemoteTransmitter.h>
NewRemoteTransmitter transmitter(12345678, 10, 268);
char auth[] = "XXX";
char ssid[] = "XXXX";
char pass[] = "XXXX";
BLYNK_WRITE(V1)
{
int pinValue = param.asInt();
Serial.print("Lamp staat: ");
if (pinValue < 1){
Serial.println("Uit");
transmitter. sendUnit(1, false);
}
else {
Serial.println("Aan");
transmitter. sendUnit(1, true);
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,150), 8442);
}
void loop()
{
Blynk.run();
}