This example uses an Ethernet shield to connect to a server. In this case the server is implemented with B4J, though you can easily implement a similar server with B4A or B4i.
Whenever the user clicks on a connected button the event will be sent to the server.
The first step is to connect to the network.
We can assign a static address to the board or ask the network DHCP service to assign an address automatically.
Code:
'eth is an Ethernet object.
If eth.InitializeDHCP(MacAddress) = False...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1UiCpTR
via IFTTT
Aucun commentaire:
Enregistrer un commentaire