-
Notifications
You must be signed in to change notification settings - Fork 3k
[IOTCELL-741] Separating public data structures #6588
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
Conversation
@AnttiKauppila @kivaisan Please review. |
11e5235
to
47ac15c
Compare
features/lorawan/LoRaWANBase.h
Outdated
@@ -19,7 +19,7 @@ | |||
#ifndef LORAWAN_BASE_H_ | |||
#define LORAWAN_BASE_H_ | |||
|
|||
#include "lorawan/system/lorawan_data_structures.h" | |||
#include "lorawan/base_structs.h" |
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.
remove lorawan/ from include
47ac15c
to
bad7b89
Compare
features/lorawan/LoRaWANBase.h
Outdated
@@ -19,7 +19,7 @@ | |||
#ifndef LORAWAN_BASE_H_ | |||
#define LORAWAN_BASE_H_ | |||
|
|||
#include "lorawan/system/lorawan_data_structures.h" | |||
#include "lorawan/base_structs.h" |
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.
base_structs.h is not a good name as file is not just about structs but all kind of data types. Also filename should include term lora.
bad7b89
to
4c63cdc
Compare
@AnttiKauppila @kivaisan This needs review |
features/lorawan/lorawan_public_ds.h
Outdated
RX_TIMEOUT, | ||
RX_ERROR, | ||
JOIN_FAILURE, | ||
} lorawan_event_t; |
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.
Please move description of events from add_app_callbacks().
4c63cdc
to
998f984
Compare
@AnttiKauppila @kivaisan please review again. |
/morph build |
@0xc0170 please review. |
@kjbracey-arm Please review. |
Build : FAILUREBuild number : 1723 |
I think the naming is a little off - general assumption is normally that headers are public, unless they're in a Also, to make it a bit more generic than structures, often "types" is used, eg "nsapi_types.h". I'd suggest "lorawan_types.h" |
998f984
to
f074682
Compare
@kjbracey-arm Please review again. @0xc0170 Morph build needed. |
/morph build |
@0xc0170 Morph build failed for some BLE test. Logs are just too much to find anything useful. Can you please help me here to figure out what is happening here ? |
Build : SUCCESSBuild number : 1725 Triggering tests/morph test |
The last build is fine after your latest changes. I restarted jenkins CI as well as there was failure not related tot this changeset I assume, please verify |
Exporter Build : SUCCESSBuild number : 1360 |
Test : SUCCESSBuild number : 1529 |
Any data structure used in LoRaWANBase class should be available in a separate header in order to make the code easy to port and easy to read as the developer doesn't need to know about all the internal data structures being used in Mbed LoRaWAN stack.
f074682
to
c34b5e6
Compare
@kjbracey-arm @0xc0170 Please review again. Rebased after resolving conflict. |
/morph build |
Build : SUCCESSBuild number : 1733 Triggering tests/morph test |
@0xc0170 Seems like CI ran out of memory. pr-head for CLI app failed. Could we start the job again ? |
This is known problem, waiting for CI infra team to fix or github. Affected few other PR. Olli can provide details |
Test : SUCCESSBuild number : 1536 |
Exporter Build : SUCCESSBuild number : 1367 |
@0xc0170 This can proceed with merge. |
Description
Any data structure used in LoRaWANBase class should be available
in a separate header in order to make the code easy to port and
easy to read as the developer doesn't need to know about all the
internal data structures being used in Mbed LoRaWAN stack.
Pull request type
[ ] Fix
[X] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change