(ctx context.Context, reply string, req *proxy.Request)
| 7 | ) |
| 8 | |
| 9 | func (s *Server) deviceStateData(ctx context.Context, reply string, req *proxy.Request) { |
| 10 | data, err := s.ari.DeviceState().Data(req.Key) |
| 11 | if err != nil { |
| 12 | s.sendError(reply, err) |
| 13 | return |
| 14 | } |
| 15 | |
| 16 | s.publish(reply, &proxy.Response{ |
| 17 | Data: &proxy.EntityData{ |
| 18 | DeviceState: data, |
| 19 | }, |
| 20 | }) |
| 21 | } |
| 22 | |
| 23 | func (s *Server) deviceStateGet(ctx context.Context, reply string, req *proxy.Request) { |
| 24 | data, err := s.ari.DeviceState().Data(req.Key) |
nothing calls this directly
no test coverage detected