-
-
Notifications
You must be signed in to change notification settings - Fork 398
Does OTA work in arduino-cli? #69
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
Comments
+1 on this issue. The code seems to already support OTA, but boards are not listed. I have a MKR1010 which is correctly recognized for OTA by Arduino IDE, while CLI (preview 0.32) does not list it. |
Here's a makefile snippet that provides a temporary workaround for doing OTA with the CLI: Use
|
This comment was marked as spam.
This comment was marked as spam.
@brusherru @thekunalsaini Workarounds are possible as @unixbigot reported, but there is no CLI native support ATM. Cheers! |
* Fixing issues uncovered by stronger compiler warnings * Adding const qualifier for parameter 'char * fmt' -> 'const char * fmt' thereby eliminating -Wwrite-strings warnings * Adding missing cases to switch statements * Removing unused variable 'index' * Reording initialisation order of ArduinoIoTCloud in order to eliminate '-Wreorder' warnings * Adding const qualifier for parameter 'char * fmt' -> 'const char * fmt' thereby eliminating -Wwrite-strings warnings * Prefixing 'connection' with an underscore -> '_connection' in order to be consistent with all other member variables * Preventing multiple definitions of SECRET_PASS mutually overwriting one another by prefixing the correct connection type * Changing type of timeout intervals to type unsigned long - otherwise there is a type inconsistency and probable bug when checking the connection time interval * Removing duplicate ERROR case * Adding missing cases and simplifying code * Changing type of timeout intervals to type unsigned long - otherwise there is a type inconsistency and probable bug when checking the connection time interval * Using default clause for missing switch statements (no constant defined for state DISCONNECTING) * Fix -Wreorder error * Simplifying WifiConnectionManager * Replacing '#warning' with '#pragma message' * Fixing comparison between unsigned and signed type * Ignoring error stemming from warning about deprecated functions * Rectifying signed/unsigned comparison * char * arrays should be compared via strcmp * Commenting out unused parameters in order to prevent -Wunused-parameter * Removing unused variable connection buffer * Adding missing switch cases * Correct initlisation of struct tm t * Correct printf specifier for unsigned long it is %lu * Adding missing initializer for tm_isdst * Performing cast in order to guarantuee correct comparison * Fixing formatting * Disabling '-Wunused-variable' to prevent false positives * Removing prefix 'WIFI_' and 'GSM_' because Arduino Create is looking for 'SECRET_SSID', 'SECRET_PASS', etc. when importing a example project into Arduino Create * Correcting comment * Removing prefix of parameter 'newState' wherever used, since prefixes usually indicate class members * Consting parameter 'newState' - defensive programming
Suppress text output when in --format json mode
I see
networkBoards
list when I callarduino-cli board list --format json
, but it's always empty, even when I see the board in the Arduino IDE.I tested it with
esp8266:esp8266:wifi_slot
board on MacOS Sierra.I see that you are using
monitor.Network()
in theboard/list.go
, so I assume it should work. But it's not.Is this a real bug or it just not implemented yet?
The text was updated successfully, but these errors were encountered: