sketch\B4RArduino.cpp: In member function 'void B4R::Serial::Initialize2(ULong, Byte)':
B4RArduino.cpp:54: error: invalid conversion from 'Byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]
hs->begin(BaudRate, Config);
^
In file included from C:\Users\toley\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/Arduino.h:246:0,
from sketch\B4RDefines.h:8,
from sketch\B4RArduino.cpp:1:
C:\Users\toley\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/HardwareSerial.h:77:10: error: initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]
void begin(unsigned long baud, SerialConfig config)
^
exit status 1
invalid conversion from 'Byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]
Thanks Erel, after commenting line 54, the program can be compiled and load into the board. but the I constantly receive a message on the Log (every seconds I guess)
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
I did try to create a wifi library that will work with it, however I wasn't able to get it working at all (trying from the Arduino IDE). I will try it again in the future.
Hi Erel, the examples that come from this library are working very fine. I don't have the exact same shield as you but it works with an ESP8266-12 and a Node-MCU who holds the same chip as yours (ESP8266-12E).
Curious: How is this board integrated in the Arduino IDE and is the board also listed in B4R Board Selector?
Reason for asking:
Added ESP8266 Boards into the Arduino IDE 1.6.8 using "http://arduino.esp8266.com/stable/package_esp8266com_index.json" (Additional Board Manager URLs field).
But when opening the B4R Board selector, these additional boards are not listed.
I'll explain. B4R tries to extract the list of boards from Arduino IDE.
During the beta there were cases where this step failed for (currently) unknown reason. The workaround is to provide a static list of boards when it fails. The list is stored in boards.txt in the installation folder.
You can replace the file with the one attached. It includes the ESP boards.
Attached & selected board NodeMCU v1.0 with upload speed 115200.
Changed core library scheduler.cpp as stated in post #14.
Changed core library B4RArduino.cpp by commenting out lines 50 and 52-54.
Got the Blink Example working on a LED connected to pin D2 which is GPIO4 of the NodeMCU. In B4R defined as Private LEDPinNumber As Byte = 0x04
Followup question:
Is it possible to add as permanent fix in B4R, an additional conditional define for the ESP8266 for core lib B4RArduino.cpp? or any hint if this can be done via B4R code.
I am not sure, not tested yet, as the changes will also work for the Arduino boards.