-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native code for ESPNOW feature #2218
base: develop
Are you sure you want to change the base?
Native code for ESPNOW feature #2218
Conversation
…/github.com/SandorDobos/nf-interpreter into feature-nanoFramework.Hardware.Esp32.EspNow
…eter into feature-nanoFramework.Hardware.Esp32.EspNow
…/github.com/SandorDobos/nf-interpreter into feature-nanoFramework.Hardware.Esp32.EspNow
…eter into feature-nanoFramework.Hardware.Esp32.EspNow
Automated fixes for code style.
@SandorDobos there are issues with the code style on the source files. Make sure to follow the project code style. Check the details here on how it works and the tools required to help you with that. |
…eter into feature-nanoFramework.Hardware.Esp32.EspNow
Automated fixes for code style.
…683f' of https://github.com/nanoframework/nf-interpreter into nanoframework-nfbot/clang-format-fix/50006557-6649-4026-8a5a-f6d9c090683f
…-8a5a-f6d9c090683f' into feature-nanoFramework.Hardware.Esp32.EspNow
Automated fixes for code style.
…-8a39-2f742586a29b' into feature-nanoFramework.Hardware.Esp32.EspNow
…-95a3-c13d13bb726b' into feature-nanoFramework.Hardware.Esp32.EspNow
02961e4
to
ff3b7cd
Compare
@@ -16,6 +16,10 @@ | |||
// Keep command history | |||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | |||
], | |||
"workspaceFolder": "/workspace", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in this file don't belong to this PR, please revert.
@@ -292,7 +292,8 @@ | |||
"API_nanoFramework.Hardware.Esp32.Rmt": "ON", | |||
"API_System.Device.Dac": "ON", | |||
"API_nanoFramework.Graphics": "OFF", | |||
"API_nanoFramework.Device.Bluetooth": "ON" | |||
"API_nanoFramework.Device.Bluetooth": "ON", | |||
"API_nanoFramework.Espnow": "ON" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"API_nanoFramework.Espnow": "ON" | |
"API_nanoFramework.EspNow": "ON" |
@@ -339,7 +340,8 @@ | |||
"API_nanoFramework.Hardware.Esp32.Rmt": "ON", | |||
"API_System.Device.Dac": "ON", | |||
"API_nanoFramework.Graphics": "OFF", | |||
"API_nanoFramework.Device.Bluetooth": "OFF" | |||
"API_nanoFramework.Device.Bluetooth": "OFF", | |||
"API_nanoFramework.Espnow": "ON" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"API_nanoFramework.Espnow": "ON" | |
"API_nanoFramework.EspNow": "ON" |
@@ -387,7 +389,8 @@ | |||
"API_nanoFramework.Hardware.Esp32.Rmt": "ON", | |||
"API_System.Device.Dac": "ON", | |||
"API_nanoFramework.Graphics": "OFF", | |||
"API_nanoFramework.Device.Bluetooth": "ON" | |||
"API_nanoFramework.Device.Bluetooth": "ON", | |||
"API_nanoFramework.Espnow": "ON" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"API_nanoFramework.Espnow": "ON" | |
"API_nanoFramework.EspNow": "ON" |
@@ -483,7 +487,7 @@ | |||
"API_nanoFramework.Hardware.Esp32.Rmt": "ON", | |||
"API_nanoFramework.Device.Bluetooth": "OFF", | |||
"API_nanoFramework.Graphics": "ON", | |||
"API_Windows.Devices.Adc": "ON", | |||
"API_nanoFramework.Espnow": "ON", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"API_nanoFramework.Espnow": "ON", | |
"API_nanoFramework.EspNow": "ON", |
@@ -0,0 +1,148 @@ | |||
//----------------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with license header.
@@ -0,0 +1,181 @@ | |||
//----------------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with license header.
ret = esp_now_init(); | ||
if (ret == ESP_OK) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ret = esp_now_register_recv_cb(DataRecvCb); | ||
if (ret == ESP_OK) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,160 @@ | |||
//----------------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with license header.
@SandorDobos also waiting for the PR for the manage library. |
I would like to use ESPNOW with nanoframework. |
@SandorDobos any chance we can have this PR moved forward? 😅 |
@SandorDobos any help needed to move forward this PR? |
Merry Christmas everyone.... Having this in the framework would be very handy indeed.... Cheers |
@SandorDobos |
Man I really hope you merge this. |
@SandorDobos there are issues with the code style on the source files. Please merge the changes from https://github.com/nanoframework/nf-interpreter/tree/nfbot/clang-format-fix/8dcdd254-faee-40b8-8213-d670c5a4f546. |
Description
Adds native code supporting nanoFramework.Hardware.Esp32.EspNow managed lib.
Motivation and Context
How Has This Been Tested?
Used in my own project.
Types of changes
Checklist: