isIncomingDataPacket should be struct function