= Arduino Board Discovery (Golang) Alessandro Sanino [email protected]
This package allows to discover and monitor Arduino boards connected to the network or the serial ports.
====== GODOC can be found link:https://godoc.org/github.com/arduino/board-discovery[HERE]
=== The Monitor
Monitor periodically (period specified by Interval) checks the serial ports and the network in order to have an updated list of Serial and Network ports.
Start
, Stop
and Restart
a Monitor, using the specified functions.To have the list of devices discovered, you can use (assuming a started monitor m
):
. m.Serial()
to get the list of devices connected via serial interface.
. m.Network()
to get the list of devices connected via the network.
=== The device types
SerialDevice
represents a device connected via serial port:type SerialDevice struct { Port string SerialNumber string ProductID string VendorID string Serial *serial.Info }
NetworkDevice
represents a device connected via the network:type NetworkDevice struct { Address string Info string Name string Port int }
== Security
If you think you found a vulnerability or other security-related bug in this project, please read our https://github.com/arduino/board-discovery/security/policy[security policy] and report the bug to our Security Team Thank you!
e-mail contact: [email protected]