in remote_hardware.py in onGPIOreceive(...):
change line:
f'Received RemoteHardware type={hw["type"]}, gpio_value={gpioValue} value={value}'
to
f'Received Remote_Hardware type={hw["type"]}, mask=0x{int(interface.mask):x} value=0x{int(value):x}'
Example output at gpio-wrb
Writing GPIO mask 0x2000 with value 0x2000 to !93879b84
Output at gpio-rd
before:
Received Remote_Hardware type=READ_GPIOS_REPLY, gpio_value=8192 value=8192
after/with modification:
Received Remote_Hardware type=READ_GPIOS_REPLY, mask=0x2000 value=0x2000
Note: 8192 ist the decimal representation of the (hex) 0x2000
in
remote_hardware.pyinonGPIOreceive(...):change line:
f'Received RemoteHardware type={hw["type"]}, gpio_value={gpioValue} value={value}'to
f'Received Remote_Hardware type={hw["type"]}, mask=0x{int(interface.mask):x} value=0x{int(value):x}'Example output at
gpio-wrbWriting GPIO mask 0x2000 with value 0x2000 to !93879b84
Output at
gpio-rdbefore:
Received Remote_Hardware type=READ_GPIOS_REPLY, gpio_value=8192 value=8192
after/with modification:
Received Remote_Hardware type=READ_GPIOS_REPLY, mask=0x2000 value=0x2000
Note: 8192 ist the decimal representation of the (hex) 0x2000