@Vincent Hallo Vincent,
ich hab mir auch son Teil zugelegt, leider habe ich den Post zu spät gelesen. Ist ja sicherlich noch keine Lösung gefunden
Ich habe auf meinem Test System die V2.0.9
Beim Scan findet das System auch die Mac Adresse, die exec node gibt error 1 aus.
geb ich den Befehl aus der exec node auf der Konsole ein, kommt das:
pi@pekaway:~ $ python3 pekaway/ble_py/goksenso4.py -d E8:90:F1:27:62:19
Traceback (most recent call last):
File "/home/pi/pekaway/ble_py/goksenso4.py", line 30, in <module>
child.expect("Characteristic value was written successfully", timeout=1)
File "/home/pi/.local/lib/python3.11/site-packages/pexpect/spawnbase.py", line 354, in expect
return self.expect_list(compiled_pattern_list,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/pexpect/spawnbase.py", line 383, in expect_list
return exp.expect_loop(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f9369aa50>
command: /usr/bin/gatttool
args: ['/usr/bin/gatttool', '-t', 'random', '-b', 'E8:90:F1:27:62:19', '--char-write-req', '--handle=0x000f', '--value=0100']
buffer (last 100 chars): b''
before (last 100 chars): b'connect to E8:90:F1:27:62:19: Function not implemented (38)\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: 1
flag_eof: True
pid: 25870
child_fd: 5
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile(b'Characteristic value was written successfully')
pi@pekaway:~ $
Hast du eine Idee???
Gruß Arno