May-29-2021, 04:32 PM
(May-29-2021, 01:38 PM)Larz60+ Wrote: Because I don't have an xbee available to play with, can't run the code, so unable to diagnose.
I actually do have a bunch of older xbee's that are in a tote in my garage, but it would take a few months to find them.
I think that you should unconditionally close the device in your finally clause.
If for any reason it was not closed, the next time thecodigoIniciar()
function was called, you would be trying to open an already open device, I have no idea what (if any) problem that would cause.
Maybe, I think it is the general loop en the GUI. Because I only want to call one One time the
codigoIniciar()
.