W webkumanda Member Licensed User Longtime User Jan 5, 2015 #1 Hi, I can not send BLE "255" or hex "FF" , I send "0-127". How do I send a number greater than 127? Sub Button3_Click s = cs.Get(5) c = s.GetCharacteristics.GetValueAt(0) c.SetStringValue(CHR(255)) ' End Sub
Hi, I can not send BLE "255" or hex "FF" , I send "0-127". How do I send a number greater than 127? Sub Button3_Click s = cs.Get(5) c = s.GetCharacteristics.GetValueAt(0) c.SetStringValue(CHR(255)) ' End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2015 #2 Are you using BleExtended library? Try this code (I'm not sure that it will work as I'm not familiar with its implementation): Code: Dim jo As JavaObject = c jo.RunMethod("setValue", Array(Array As Byte(255))) Upvote 0
Are you using BleExtended library? Try this code (I'm not sure that it will work as I'm not familiar with its implementation): Code: Dim jo As JavaObject = c jo.RunMethod("setValue", Array(Array As Byte(255)))
W webkumanda Member Licensed User Longtime User Jan 5, 2015 #3 Yes , I using BleExtended library. I not send "128 - 255", If I send "128" then code sending 3 byte "65" & "50" & "56" ( character "1" , "2" , "8" ) Upvote 0
Yes , I using BleExtended library. I not send "128 - 255", If I send "128" then code sending 3 byte "65" & "50" & "56" ( character "1" , "2" , "8" )
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2015 #4 Have you tried the code I posted? Upvote 0