Commit 1465488e authored by Yann Garcia's avatar Yann Garcia
Browse files

Add support of MQTT+WSS in meep-iot (CR needed)

parent 2b8cb4b6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 == "" {