[help]Why can't I use "serial.close()" to close the occupancy of the Serial port? #103
Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Hi Conmi-WhiteJoker, |
Beta Was this translation helpful? Give feedback.
-
The Also if you are using the PiGPIO library for Serial communication, it appears to also try and ensure the serial is closed on a shutdown. So if the Serial instance is not shutting down properly that would be a problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When the program exits, I use "Serial.close ()".Serial is NULL, but I am still using it until I exit without clearing it.
I found that the serial port was still occupied when I restarted the application.
java.io.IOException: Failed to SET terminal attributes for the serial port. (Error #22)
Beta Was this translation helpful? Give feedback.
All reactions