When a message is received from a device, this method is called with the received message as a Packet
device
void onMessage(Packet packet, Device device);