B4R Question ESP32: WiFi & adafruit neopixel libs doesn't work anymore

KMatle

Expert
Licensed User
I tried to change one of my apps using BT to WiFi because BT isn't that reliable. As soon as I add the WiFi lib I can't compile anymore:

I use this lib: https://www.b4x.com/android/forum/threads/radafruitneopixel.69613/ and tried this one: https://www.b4x.com/android/forum/t...-based-on-neopixel-lib-v1-3-1.111313/#content

BT works but not WiFi. Code (I tried with "#DefineExtra: #define SKIP_B4RNEW" and without).

B4X:
Sub Process_Globals
    Public Serial1 As Serial
    Private wifi As ESP8266WiFi
    Private pixel As AdafruitNeoPixel
    Private timer1 As Timer
    Private n As Int
    Private server As WiFiServerSocket
    Private astream As AsyncStreams
    Private ser As B4RSerializator
End Sub


Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    'example of connecting to a local network
    For i=1 To 10
        Log("Trying to connect..." + i)
        If wifi.Connect2("SSID", "PW") Then
            Log("Connected to network")
            Exit
        Else
            Log("Failed to connect to network")
        End If
    Next
    pixel.Initialize(16, 4, pixel.NEO_GRB)
    timer1.Initialize("timer1_Tick", 500)
    timer1.Enabled = True
    
    server.Initialize(51042, "server_NewConnection")
    server.Listen
    
End Sub

B4X:
Fail to get the Vid Pid information from the builder response code=404
In file included from C:\Users\Klaus\DOCUME~1\B4RApps\NEOPIX~1\Objects\bin\sketch\B4RDefines.h:24:0,
                 from C:\Users\Klaus\DOCUME~1\B4RApps\NEOPIX~1\Objects\bin\sketch\AsyncStreams.cpp:1:
rAdafruitNeoPixel.h:14:20: error: 'UInt' has not been declared
    void Initialize(UInt NumberOfLEDs, Byte PinNumber, UInt LEDType);
                    ^
rAdafruitNeoPixel.h:14:39: error: 'Byte' has not been declared
    void Initialize(UInt NumberOfLEDs, Byte PinNumber, UInt LEDType);
                                       ^
rAdafruitNeoPixel.h:14:55: error: 'UInt' has not been declared
    void Initialize(UInt NumberOfLEDs, Byte PinNumber, UInt LEDType);
                                                       ^
rAdafruitNeoPixel.h:15:23: error: 'UInt' has not been declared
    void SetPixelColor(UInt N, Byte R, Byte G, Byte B);
...
 
Top