You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have such code , and when i check if server is running, it always return false.
import*asbtSerialfrom"bluetooth-serial-port";exportdefaultclassBluetooth{privatebl;CHANNEL=10;// My service channel. Defaults to 1 if omitted.UUID='38e851bc-7144-44b4-9cd8-80549c6f2912';// My own service UUID. Defaults to '1101' if omittedconstructor(){this.onData=this.onData.bind(this);this.onError=this.onError.bind(this);this.onSuccess=this.onSuccess.bind(this);this.bl=newbtSerial.BluetoothSerialPortServer();this.bl.listen(this.onSuccess,this.onError);this.bl.on('data',this.onData,{channel: this.CHANNEL})}onSuccess(address){console.log('Client: '+address+' connected!');}onError(error){console.error("Something wrong happened!:"+error);}onData(buffer){console.log('Received data from client: '+buffer);}}
The text was updated successfully, but these errors were encountered:
SoGoDev
changed the title
could not run server
could not run server on Linux
Jun 28, 2020
I have such code , and when i check if server is running, it always return false.
The text was updated successfully, but these errors were encountered: