Hi
I have in Main this code:
In conn1 module:
In MainPage the Sub
is never raised.
Why?
I have in Main this code:
B4X:
srv.AddHandler("/conn1", "conn1", False) 'From devices
myApp.StartServer(srv, "srv", 51042)
In conn1 module:
B4X:
Sub Class_Globals
Private sharemodule As MainPage 'the first Page show on the browser
End Sub
Sub Handle(req As ServletRequest, resp As ServletResponse)
Dim read As Map
Dim result As Map
read.Initialize
result.Initialize
read = ReadObject(req.InputStream)
result = CallSub2(sharemodule, "SetControls", read)
If result.IsInitialized Then
.........
.........
End Sub
In MainPage the Sub
B4X:
Public Sub SetControls(mp As Map) As Map
........
End Sub
Why?