hello. i am using blue py and i am getting error as write characteristic needs 3 atleast 3 arguments 0 given,can you help me out? this is my code snippet
import sys
from bluepy.btle import UUID, Peripheral
if len(sys.argv) != 2:
print "Fatal, must pass device address:", sys.argv[0], ""
quit()
hello. i am using blue py and i am getting error as write characteristic needs 3 atleast 3 arguments 0 given,can you help me out? this is my code snippet
import sys from bluepy.btle import UUID, Peripheral
if len(sys.argv) != 2: print "Fatal, must pass device address:", sys.argv[0], ""
quit()
p = Peripheral(sys.argv[1],"public")
def writeCharacteristic(self, handle, val, withResponse=False):
Without response, a value too long for one packet will be truncated,
binascii.b2a_hex(val).decode('utf-8'))) return self._getResp('wr')
writeCharacteristic()