Permalink
Browse files

Fixed Binary MQTT on Java

  • Loading branch information...
jakhog committed Sep 28, 2017
1 parent d73df45 commit ad5fe0729ead5e42ea59d4167ce7e3858a0f4cf0
@@ -138,19 +138,23 @@ public void generateNetworkLibrary(Configuration cfg, Context ctx, Set<Protocol>
temp.append("else ");
temp.append("if (e.getType().equals(" + m.getName().toUpperCase() + ")) {\n");
temp.append("return ");
/* FIXED?
if (sp.getSupportedFormat().contains("Binary")) {//FIXME
temp.append("JavaBinaryHelper.toObject(");
if (escape) {
temp.append("JavaBinaryHelper.unescape(");
}
}
*/
temp.append("format((" + ctx.firstToUpper(m.getName()) + "MessageType." + ctx.firstToUpper(m.getName()) + "Message)e)\n");
/* FIXED?
if (sp.getSupportedFormat().contains("Binary")) {//FIXME
temp.append(")");
if (escape) {
temp.append(")");
}
}
*/
temp.append(";");
temp.append("}\n");
i++;

0 comments on commit ad5fe07

Please sign in to comment.