topic.go 202 B

1234567891011
  1. package camera
  2. import "fmt"
  3. const (
  4. TopicDeviceCamera = "device/camera"
  5. )
  6. func GetTopic(deviceCode, protocol string) string {
  7. return fmt.Sprintf("smart_intersection/%s/%s", deviceCode, protocol)
  8. }