Code example for BluetoothSocket

Methods: isConnected

0
	@Type ( value = "boolean") 
	@Path ( value = "RestRemoteService/isConnected/") 
	@MethodType ( value = "GET") 
	public boolean isConnected() 
	{ 
		return btSocket.isConnected();
	} 
 
	@Params ( names = { "run" }, types = { Boolean.class })
	@Type ( value = "boolean") 
	@Path ( value = "RestRemoteService/bluetooth/") 
	@MethodType ( value = "PUT") 
	public boolean bluetooth( Boolean run )
	{ 
		if ( !run.booleanValue() )
			return false; 
 
//		sendCommand( 0.1f, 0.99f ); 
		 
		if ( run.booleanValue() )
Experience pair programming with AI  Get Codota for Java