Fix: Change device_id type to uint16_t (to support values > 255).