Added option to set verbosity from user code

This commit is contained in:
Jonas Köritz 2019-08-28 18:02:04 +02:00
parent d54730323f
commit 3e25160671

View file

@ -390,6 +390,11 @@ func (c *Camera) Disconnect() {
c.connection.Close()
}
// SetVerbose changes the verbosity setting of this camera object
func (c *Camera) SetVerbose(verbose bool) {
c.verbose = verbose
}
func aliveRequestHandler(camera *Camera, message *Message) (bool, error) {
camera.Log("Received Alive Request")
responseHeader := CreateCommandHeader(0x0113) // Alive Response