B4R Question [SOLVED] Error: Cannot convert 'Serial_*' with Arduino Esplora

ellpopeb4a

Member
Licensed User
Longtime User
Hi:
This is base code:
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
End Sub

The log returns this:
B4X:
B4R version: 1.00 BETA 4
Parsing code.    (0.00s)
Compiling code.    (0.03s)
Building project    (0.06s)
Compiling & deploying Ino project (Arduino Esplora - COM23)    Error
Loading configuration...
Sto inizializzando i pacchetti...
Sto preparando le schede...
Sto verificando e caricando...
sketch\B4RArduino.cpp: In member function 'void B4R::Serial::Initialize2(ULong, Byte)':
B4RArduino.cpp:49: error: cannot convert 'Serial_*' to 'HardwareSerial*' in initialization
   HardwareSerial* hs = &::Serial;
                           ^
exit status 1
cannot convert 'Serial_*' to 'HardwareSerial*' in initialization

use Beta #4
Thanks..
 
Top