[communication] Implements the Xbee_send for linux, enhances error handling.