B4R Question err:'setAP' was not declared in this scope - don't find the reason ..[solved]

Hans- Joachim Krahe

Active Member
Licensed User
Longtime User
hi there,

I try to integrate an Accesspoint into another source

B4X:
sub Appstart
    Serial1.Initialize(115200)
    Log("AppStart")
    'RunNative("setSoftAP", Null)
    RunNative("setAP", Null) '<<<<<<<<<<<<<<<<<<<<<<<
    server.Initialize(serverPort, "server_NewConnection")
    server.Listen
  end if
.
.
.
.
.
#If C
#include <DFPlayer_Mini_Mp3.h>
void SetAP(B4R::Object* o) {  //'<<<<<<<<<<<<<<<<<<<<<<<<<<
   WiFi.mode(WIFI_AP);
}
.
.etc
/CODE]

... and get error:
"In static member function 'static void b4r_main::_appstart()':rCore.h:455: error: 'setAP' was not declared in this scope
#define /*Object* RunNative (FunctionObjectObject Method, Object* Arg);*/ Common_RunNative(F,A) F(A)"[
... same code works fine in server. Can there be a collision with other wifi components?

thank you:)
 
Last edited:
Top