moving arduino messages to arduino class