I'm attempting to use ENUM to develop a set of switch-cases:
enum MODE { ON, OFF, STANDBY};
MODE mode;
I'd like to use MODE in an IOT project with a read/write VALUE SELECTOR. However, I get errors when I attempt to update "mode" based on changes from the MODE (value) in the dashboard:
ⓘ This is done to make the code easier for us to read.
Click on the editor panel of the window.
Press the Ctrl+A keyboard shortcut (Command+A for macOS users).
This will select all the code.
Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
This will copy the selected text to the clipboard.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the copied code into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the "Reply" button to post the output.
If your code uses a library that you imported to your Arduino Cloud account (as opposed to the standard libraries that are pre-installed), please post a link to where you downloaded that imported library from.
Information re: "Errors"
Please provide the full and exact text of the error messages.