The functions xbee_init() and xbee_fini() are used to manually setup and teardown libxbee. These functions should be used with care, and in conjunction with the XBEE_MANUAL_INIT and XBEE_MANUAL_FINI compile options.
You must call xbee_init() once before calling on any other libxbee functionality.
Similarly, you must only call xbee_fini() after all instances of libxbee have been terminated.
Calling xbee_init() multiple times will result in undefined behavior.