forked from arduino/arduino-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added documentation for pluggable monitor * Apply suggestions from code review Co-authored-by: per1234 <[email protected]> * Add pluggable monitor spec in nav bar; fixed link in source code comments * fix i18n and lint warnings Co-authored-by: per1234 <[email protected]>
- Loading branch information
Showing
9 changed files
with
359 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
// Arduino software without disclosing the source code of your own applications. | ||
// To purchase a commercial license, send an email to [email protected]. | ||
|
||
// Package monitor provides a client for Pluggable Monitors. | ||
// Documentation is available here: | ||
// https://arduino.github.io/arduino-cli/latest/pluggable-monitor-specification/ | ||
package monitor | ||
|
||
import ( | ||
|
@@ -30,16 +33,6 @@ import ( | |
"github.com/sirupsen/logrus" | ||
) | ||
|
||
// To work correctly a Pluggable Monitor must respect the state machine specifed on the documentation: | ||
// https://arduino.github.io/arduino-cli/latest/pluggable-monitor-specification/#state-machine | ||
// States a PluggableMonitor can be in | ||
const ( | ||
Alive int = iota | ||
Idle | ||
Opened | ||
Dead | ||
) | ||
|
||
// PluggableMonitor is a tool that communicates with a board through a communication port. | ||
type PluggableMonitor struct { | ||
id string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.