Skip to content
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

firmware/default_params: Adding Elements to save configuration in the… #308

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

CW-75
Copy link
Collaborator

@CW-75 CW-75 commented Jul 12, 2022

Contribution description

Pr to create all variables of mesh4all firmware, these will be saved and loaded from the EEPROM Memory, This works with structs compressed to save the exactly size of data and gets more storage size.

Testing procedure

run test/storage

make -C test/storage flash term

###Expected Output

2022-07-12 01:57:12,586 # ..
2022-07-12 01:57:12,586 # 
2022-07-12 01:57:12,589 # Loading Firmware default data:
2022-07-12 01:57:12,589 # 
2022-07-12 01:57:12,590 # Tx_power:  -30
2022-07-12 01:57:12,591 # Sub_GHz:  YES
2022-07-12 01:57:12,592 # Channel: 11
2022-07-12 01:57:12,593 # 
2022-07-12 01:57:12,593 # Routing
2022-07-12 01:57:12,593 # 
2022-07-12 01:57:12,595 # Rpl_mode: DAG
2022-07-12 01:57:12,596 # RPL instance: 0
2022-07-12 01:57:12,596 # 
2022-07-12 01:57:12,597 # Routing
2022-07-12 01:57:12,597 # 
2022-07-12 01:57:12,598 # Rpl_mode: 0
2022-07-12 01:57:12,600 #  Wifi-subsys: NO
2022-07-12 01:57:12,601 # Amount of sensors 2
2022-07-12 01:57:12,602 # 
2022-07-12 01:57:12,603 # Sensor Id 1 
2022-07-12 01:57:12,606 # Class of Sensor: MOISTURE SENSOR
2022-07-12 01:57:12,609 # Application Type of Sensor: SOIL SENSOR
2022-07-12 01:57:12,610 # Input pin: 5
2022-07-12 01:57:12,611 # 
2022-07-12 01:57:12,612 # Sensor Id 2 
2022-07-12 01:57:12,615 # Class of Sensor: TEMPERATURE SENSOR
2022-07-12 01:57:12,618 # Application Type of Sensor: AIR SENSOR
2022-07-12 01:57:12,619 # Input pin: 1
2022-07-12 01:57:12,620 # 
2022-07-12 01:57:12,620 # 

Issues/PRs references

Fixes #309

@CW-75 CW-75 force-pushed the feature/storage_defaults branch from a5b1de7 to 62a5d18 Compare July 12, 2022 05:56
@CW-75 CW-75 requested review from luisan00 and RocioRojas July 12, 2022 05:58
Copy link
Contributor

@luisan00 luisan00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done! going ahead!!

@CW-75 CW-75 merged commit cee637a into Mesh4all:main Jul 12, 2022
@CW-75 CW-75 deleted the feature/storage_defaults branch July 12, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macro definition not documented in rpl-protocol component
3 participants