From 00b0b812cc4face10199c66e7eb272985a684f85 Mon Sep 17 00:00:00 2001 From: Bertrand Martel Date: Mon, 14 Dec 2015 15:27:42 +0100 Subject: [PATCH] fix getConnection() JSON key --- .../java/fr/bouyguestelecom/tv/bboxiot/events/EventBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bboxiot-lib/src/main/java/fr/bouyguestelecom/tv/bboxiot/events/EventBuilder.java b/bboxiot-lib/src/main/java/fr/bouyguestelecom/tv/bboxiot/events/EventBuilder.java index a91fa18..8aef1b5 100644 --- a/bboxiot-lib/src/main/java/fr/bouyguestelecom/tv/bboxiot/events/EventBuilder.java +++ b/bboxiot-lib/src/main/java/fr/bouyguestelecom/tv/bboxiot/events/EventBuilder.java @@ -65,7 +65,7 @@ public static GenericEventAbstr buildConnectionItem(BtConnection connection) { JSONObject data = new JSONObject(); try { - data.put(AssociationEventConstant.ASSOCIATION_EVENT_ITEM, connection.toJson()); + data.put(AssociationEventConstant.ASSOCIATION_EVENT_CONNECTION, connection.toJson()); return new GenericEvent(EventTopic.TOPIC_CONNECTION, EventType.EVENT_RESPONSE, new RandomGen(Common.EVENT_ID_LENGTH).nextString(), data); } catch (JSONException e) {