Hello all,
Can anyone tell me what this error means and how to fix it?
Working with the BLEExample, slightly modified, I get the error below every time I try to run the following code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Error occurred on line: 424 (B4XMainPage)
java.lang.RuntimeException: Service not found
at anywheresoftware.b4a.objects.BleManager2.getService(BleManager2.java:418)
at anywheresoftware.b4a.objects.BleManager2.WriteData(BleManager2.java:371)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at b4a.example.b4xmainpage._sendmessage(b4xmainpage.java:669)
at b4a.example.b4xmainpage._manager_dataavailable(b4xmainpage.java:660)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
Any help would be appreciated!
Tim
			
			Can anyone tell me what this error means and how to fix it?
Working with the BLEExample, slightly modified, I get the error below every time I try to run the following code:
			
				B4X:
			
		
		
		Public Sub SendMessage
    'Log( "SendMessge " &     msg(0) )
    Log("Connected = " & connected )
    If Not(connected) Then Return
    Dim s As String = "Hello!"
    Dim msg() As Byte
    msg = ByteConvert.StringToBytes(s, "utf8")
    
    '  34:81:F4:31:62:61
    Log("The value of S = " & S )
    manager.WriteData(serviceId, charId, msg)   <<<<====  Errors here...
End SubError occurred on line: 424 (B4XMainPage)
java.lang.RuntimeException: Service not found
at anywheresoftware.b4a.objects.BleManager2.getService(BleManager2.java:418)
at anywheresoftware.b4a.objects.BleManager2.WriteData(BleManager2.java:371)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at b4a.example.b4xmainpage._sendmessage(b4xmainpage.java:669)
at b4a.example.b4xmainpage._manager_dataavailable(b4xmainpage.java:660)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
Any help would be appreciated!
Tim
 
				 
 
		 
 
		 
 
		 
 
		