Home > Mobile >  Android bluetooth support UDP communication, how do the Socket connection is broken since reconnect
Android bluetooth support UDP communication, how do the Socket connection is broken since reconnect

Time:10-27

Recent need a android peripherals using bluetooth mobile phones and send a message (a total of two other "start", "end"), but a mobile phone software needs to be a third party software used startActivityForResult callback, so if using the TCP protocol, every time the callback is to restart the active, establish a socket connection is disconnected before, send message and get back into the peripherals software to establish a connection,
So want to use the UDP protocol sends a message via bluetooth peripherals software only need to listen on a port, to check the information of bluetooth support TCP/UDP/IP protocol, but checked all day also didn't seen interpretation or case, excuse me can't do it, if can't use UDP, use socket how should deal with the problem raised by me before

CodePudding user response:

Help you top it
  • Related