6/15/2020 9:50 AM | |
Joined: 4/28/2015 Last visit: 6/3/2024 Posts: 3345 Rating:
|
Hi, I think you can't program the RESET button, it reboots the IOT2050. But you can query the state of the USER button in your program. We have to use internal linux gpio for that, because it is not a "normal" Arduino GPIO. At first you have to export the linux gpio 211 once:
Then you can query its value:
1 stands for "not pressed", 0 stands for "pressed". I have attached a simple node-red example. You can trigger some actions if status is 0 for example. Best regards! Attachmentquery_user_button_node_red.txt (740 Downloads) |
Not working for IOT2050 support anymore from March 1st, 2024. |
|
This contribution was helpful to
2 thankful Users |
3/11/2022 6:48 AM | |
Joined: 11/15/2018 Last visit: 8/13/2024 Posts: 22 Rating:
|
unfortunately it isn't working anymore after upgrading the firmware /w sample image 1.2.1 any advises? |
3/14/2022 3:20 PM | |
Joined: 4/28/2015 Last visit: 6/28/2024 Posts: 578 Rating:
|
See also https://github.com/siemens/meta-iot2050/issues/271 |
Follow us on