Updated arduino code to send 'short' and 'long' messages