B4R Question How to connect to B4J server

positrom2

Active Member
Licensed User
Longtime User
Did that, but still no connection to the server.
As I said, it worked once, but after powering off the ESP it did not connect again.
Is a sequence in actions to be followed?
Besides the firewall settings, what shall be done first: Resetting the ESP, starting the B4J App, and anything more?
The B4J server shows up in the Wlan as "TestAp". I don't see where this is defined in the B4J IDE.
 
Upvote 0

positrom2

Active Member
Licensed User
Longtime User
Also no success with Erel's code.
Which IP address do I have to use in the B4R code:
Private serverIp() As Byte = Array As Byte(192, 168, 0, 6)
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
The server is the device running the B4J application.
If f.e. the B4J application running local on a PC, get its IP address (via f.e. ipconfig) and set the ip address in the B4R Code accordingly.
 
Upvote 0

positrom2

Active Member
Licensed User
Longtime User
rwblinn: Thank you. It works now. Not having known that caused all Sunday's work....

But there must be some other trick to get them connected. Having changed settings more or less randomly (forgot what it was) I had them connected once without having entered -for sure- the PC's IP-address obtained from IPconfig.
Concerning the LED, is D4=GPIO2? (Using ESP8266-01)
 
Last edited:
Upvote 0
Top