Open wucht opened 5 years ago
Hi!
I have not developed using this code since some time, but maybe te serial library which this code depends on is of a newer version and now throws an exception which needs to be catched?
Does your Arduino receive the message you send?
yes the arduino receives the command. but after sending the command the serial port stops to work and the raspberry needs to be rebooted. I'm using the actual Raspbian Stretch Lite may be... that is the reason.
Hi trying to make running serial plugin on pimatic 9.0.42 would like to use the plugin for communication with a arduino. When i send a message like sutter:4:down i get error message :
20:48:59.999 [pimatic-serial] Sending command shutter:3:down 20:49:00.005 [pimatic-serial] Replacing escaped characters 20:49:00.011 [pimatic-serial] Checking if serialport exists 20:49:00.544 [pimatic-serial] Serial port /dev/ttyACM0 exists 20:49:00.549 [pimatic-serial] Creating port 20:49:00.580 [pimatic-serial] Port created 20:49:00.584 [pimatic-serial] Executing callback 20:49:00.589 [pimatic-serial] Writing data shutter:3:down 20:49:00.605 [pimatic-serial] Data written 20:49:00.613 [pimatic-serial] Closing port (node:2448) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: First argument must be an int 20:49:00.647 [pimatic-serial] Closed port 20:49:00.652 [pimatic-serial] Executing callback 20:49:00.656 [pimatic-serial] Command successfully send
does anyone know what is the reason for the error mesage