

@socketio.on('pin:write')
def pin_write(data):
    result = PIN_MANAGER.update_value(data.num, data.value)
    if (not result):
        emit('pin:write', {
            'message': 'Pin not found',
        })
    else:
        response = PIN_MANAGER.read_one(data.num)
        emit('pin:write', data)

dataset/ETHPy150Open projectweekend/Pi-GPIO-Server/pi_gpio/sockets.py pin_write/VarMisuse@75/108 `response`->`data`