Loading go-apps/meep-iot/server/meep-iot.go +3 −3 Original line number Diff line number Diff line Loading @@ -755,9 +755,9 @@ func registerediotplatformsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Mandatory attribute Type_ shall be set to MB_TOPIC_BASED in the request body.", http.StatusBadRequest) return } if v.Protocol != "MQTT" && v.Protocol != "AMQP" { log.Error("Mandatory Protocol parameter shall be set to MQTT or AMQP") errHandlerProblemDetails(w, "Mandatory attribute Protocol shall be set to MQTT or AMQP in the request body.", http.StatusBadRequest) if v.Protocol != "MQTT" && v.Protocol != "MQTT+WSS" && v.Protocol != "AMQP" { log.Error("Mandatory Protocol parameter shall be set to MQTT, MQTT+WSS or AMQP") errHandlerProblemDetails(w, "Mandatory attribute Protocol shall be set to MQTT, MQTT+WSS or AMQP in the request body.", http.StatusBadRequest) return } if v.Version == "" { Loading Loading
go-apps/meep-iot/server/meep-iot.go +3 −3 Original line number Diff line number Diff line Loading @@ -755,9 +755,9 @@ func registerediotplatformsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Mandatory attribute Type_ shall be set to MB_TOPIC_BASED in the request body.", http.StatusBadRequest) return } if v.Protocol != "MQTT" && v.Protocol != "AMQP" { log.Error("Mandatory Protocol parameter shall be set to MQTT or AMQP") errHandlerProblemDetails(w, "Mandatory attribute Protocol shall be set to MQTT or AMQP in the request body.", http.StatusBadRequest) if v.Protocol != "MQTT" && v.Protocol != "MQTT+WSS" && v.Protocol != "AMQP" { log.Error("Mandatory Protocol parameter shall be set to MQTT, MQTT+WSS or AMQP") errHandlerProblemDetails(w, "Mandatory attribute Protocol shall be set to MQTT, MQTT+WSS or AMQP in the request body.", http.StatusBadRequest) return } if v.Version == "" { Loading