Android Question JSON over socket - not http

mattdarnell

Member
Licensed User
Longtime User
I am having trouble interfacing with a system that uses JSON for communication. I have been following the JSON tutorials but can not get a proper reply from the device.

Here is the a response I got from the manufacturer:
"Please note that the feed interface is NOT based on Web Services (SOAP/XML over HTTP.) It is based on JSON over TCP/IP. So, you should use plain sockets (and NOT HTTP) to connect to the Event Feed and exchange JSON payload."

Would I still use the JSON creater/parser in this scenario? Do we have direct access to sockets?

-Matt
 

DonManfred

Expert
Licensed User
Longtime User

Yes and no: you dont need json parser to read. But probably a string to get the json get assigned to.
THEN, to parse the json-STRING you need the json parser

For the direct access to sockets you need this lib i believe (havent worked with tcp-connection with b4a actually)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…