*************************************************************/
#define USE_SPARKFUN_BLYNK_BOARD // Uncomment the board you are using
//#define USE_NODE_MCU_BOARD // Comment out the boards you are not using
//#define USE_WITTY_CLOUD_BOARD
//#define USE_CUSTOM_BOARD // See "Custom board configuration" in Settings.h
#define APP_DEBUG // Comment this out to disable debug prints
#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>
#include "BlynkProvisioning.h"
void setup() {
delay(500);
Serial.begin(115200);
BlynkProvisioning.begin();
}
void loop() {
// This handles the network and cloud connection
BlynkProvisioning.run();
}
Any idea who succeed in app preview with esp8266 really appriciated.
You would need to select custom board if you are using an ESP01 not the Blynk board. Then check the BlynkProvisioning.h file for the correct pin settings etc.
Thanks for your response.
Actually I tried with custom board , but no success.
By defining LED_PIN as 2 and BUTTON_PIN as 0.
#if defined(USE_CUSTOM_BOARD)
// Custom board configuration
#define BOARD_BUTTON_PIN 0 // Pin where user button is attached
#define BOARD_BUTTON_ACTIVE_LOW true // true if button is "active-low"
#define BOARD_LED_PIN 2 // Set LED pin - if you have a single-color LED attached
//#define BOARD_LED_PIN_R 15 // Set R,G,B pins - if your LED is PWM RGB
//#define BOARD_LED_PIN_G 12
//#define BOARD_LED_PIN_B 13
//#define BOARD_LED_PIN_WS2812 4 // Set if your LED is WS2812 RGB
#define BOARD_LED_INVERSE false // true, if you need to inverse LED signal
#define BOARD_RGB_BRIGHTNESS 32 // 0..255 brightness control
@Serkan_Demirhan for the WeMos rather than the ESP01’s we use CUSTOM_BOARD but we changed the default BUTTON_PIN from 0 to 4. I think we found the special pin 0 was messing up other things in our sketch like OTA etc.
Obviously with the limited ESP-01 you can’t use pin 4 but you could play around with pins 1 and 3 (TX and RX). This would involve connecting and disconnecting wires etc as they are required for flashing.
Do you have the full set of headers in your sketch such as BlynkState.h, ConfigMde.h, etc?
Edit: I guess you must have all the headers or the sketch wouldn’t compile, right?