CurrentDataSet sends CURRENT_DATA_SET request and returns response
()
| 105 | |
| 106 | // CurrentDataSet sends CURRENT_DATA_SET request and returns response |
| 107 | func (c *MgmtClient) CurrentDataSet() (*CurrentDataSetTLV, error) { |
| 108 | req := CurrentDataSetRequest() |
| 109 | p, err := c.Communicate(req) |
| 110 | if err != nil { |
| 111 | return nil, err |
| 112 | } |
| 113 | tlv, ok := p.TLV.(*CurrentDataSetTLV) |
| 114 | if !ok { |
| 115 | return nil, fmt.Errorf("got unexpected management TLV %T, wanted %T", p.TLV, tlv) |
| 116 | } |
| 117 | return tlv, nil |
| 118 | } |
| 119 | |
| 120 | // ClockAccuracy sends CLOCK_ACCURACY request and returns response |
| 121 | func (c *MgmtClient) ClockAccuracy() (*ClockAccuracyTLV, error) { |