D Declan Well-Known Member Licensed User Longtime User Nov 27, 2020 #1 I am sending a 12 byte string to my server. Is there a very basic B4J example that will listen on a specific port?
I am sending a 12 byte string to my server. Is there a very basic B4J example that will listen on a specific port?
KMatle Expert Licensed User Longtime User Nov 27, 2020 #2 Start here: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ So you are sending a string? Which instance is running on the server to receive that string? Apache, php, B4J-app? If you run php you can use OKHttpUtils to send the string and get an answer back. Upvote 0
Start here: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ So you are sending a string? Which instance is running on the server to receive that string? Apache, php, B4J-app? If you run php you can use OKHttpUtils to send the string and get an answer back.
D Declan Well-Known Member Licensed User Longtime User Nov 27, 2020 #3 @KMatle Yes, I am sending a String via the Sigfox network. The Sigfox Callback sends to my server: "https://majorparallelogram1.dedicated.co.za:17178/id={device}&time={time}&key1={data}" I can see my data arriving on the Sigfox Backend. When I run the example in your above link on my server, I see the "Disconnected" changes to "Connected". This tells me the Sigfox Callback is connecting to the B4J Example app running on my server. I will have numerous devices sending data string to my server. I am just concerned that if one device connects, no other devices will be accepted during that connection. Upvote 0
@KMatle Yes, I am sending a String via the Sigfox network. The Sigfox Callback sends to my server: "https://majorparallelogram1.dedicated.co.za:17178/id={device}&time={time}&key1={data}" I can see my data arriving on the Sigfox Backend. When I run the example in your above link on my server, I see the "Disconnected" changes to "Connected". This tells me the Sigfox Callback is connecting to the B4J Example app running on my server. I will have numerous devices sending data string to my server. I am just concerned that if one device connects, no other devices will be accepted during that connection.
DonManfred Expert Licensed User Longtime User Nov 27, 2020 #4 Declan said: I am just concerned that if one device connects, no other devices will be accepted during that connection. Click to expand... Try a second and third device at the same time. Should be no problem... Upvote 0
Declan said: I am just concerned that if one device connects, no other devices will be accepted during that connection. Click to expand... Try a second and third device at the same time. Should be no problem...
D Declan Well-Known Member Licensed User Longtime User Nov 27, 2020 #5 DonManfred said: Try a second and third device at the same time. Should be no problem... Click to expand... Eish, I haven't got the first one running :-( Upvote 0
DonManfred said: Try a second and third device at the same time. Should be no problem... Click to expand... Eish, I haven't got the first one running :-(