]> granicus.if.org Git - esp-idf/commitdiff
Fix the return value of esp_now_send()
authorXiaXiaotian <xiaxiaotian@espressif.com>
Tue, 31 Oct 2017 03:52:05 +0000 (11:52 +0800)
committerXiaXiaotian <xiaxiaotian@espressif.com>
Tue, 31 Oct 2017 07:18:20 +0000 (15:18 +0800)
components/esp32/include/esp_now.h

index 497d73776218f95b380753d4997d9890cc596dc8..4a0a4be7d61081da530cab9fd861f93ca8f60190 100644 (file)
@@ -48,6 +48,7 @@ extern "C" {
 #define ESP_ERR_ESPNOW_NOT_FOUND    (ESP_ERR_ESPNOW_BASE + 4) /*!< ESPNOW peer is not found */
 #define ESP_ERR_ESPNOW_INTERNAL     (ESP_ERR_ESPNOW_BASE + 5) /*!< Internal error */
 #define ESP_ERR_ESPNOW_EXIST        (ESP_ERR_ESPNOW_BASE + 6) /*!< ESPNOW peer has existed */
+#define ESP_ERR_ESPNOW_IF           (ESP_ERR_ESPNOW_BASE + 7) /*!< Interface error */
 
 #define ESP_NOW_ETH_ALEN             6         /*!< Length of ESPNOW peer MAC address */
 #define ESP_NOW_KEY_LEN              16        /*!< Length of ESPNOW peer local master key */
@@ -191,6 +192,7 @@ esp_err_t esp_now_unregister_send_cb(void);
   *          - ESP_ERR_ESPNOW_INTERNAL : internal error
   *          - ESP_ERR_ESPNOW_NO_MEM : out of memory
   *          - ESP_ERR_ESPNOW_NOT_FOUND : peer is not found
+  *          - ESP_ERR_ESPNOW_IF : current WiFi interface doesn't match that of peer
   */
 esp_err_t esp_now_send(const uint8_t *peer_addr, const uint8_t *data, size_t len);