Skip to content

Commit

Permalink
remove unused / deprecated / notworking function
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Jun 19, 2024
1 parent 26ecf3d commit 92becdd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/vdcdapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,22 +382,6 @@ func (e *Client) SendButtonMessage(value float32, tag string, index int) {

}

func (e *Client) SendButtonRawMessage(clicktype ClickType, tag string, index int) {
channelMessageHeader := GenericMessageHeader{MessageType: "buttonraw"}
channelMessageFields := GenericDeviceMessageFields{Index: index, Tag: tag, Value: float32(clicktype)}
channelMessage := GenericDeviceMessage{channelMessageHeader, channelMessageFields}

payload, err := json.Marshal(channelMessage)
if err != nil {
log.WithError(err).Error("Failed to Marshall object")
return
}

log.Debugf("Send Button Raw Message: %s\n", string(payload))
e.sendMessage(channelMessage)

}

func (e *Client) GetDeviceByUniqueId(uniqueid string) (*Device, error) {
for i := 0; i < len(e.devices); i++ {
if e.devices[i].UniqueID == uniqueid {
Expand Down

0 comments on commit 92becdd

Please sign in to comment.