Skip to content

Commit

Permalink
Rename fstr to mkstr, and add "copy" arg
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=a043b2614f91639ffb258226446816fd3f719967
  • Loading branch information
dimonomid authored and cesantabot committed Dec 15, 2017
1 parent a7a1775 commit a66eef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mjs_fs/api_mqtt.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let MQTT = {
_sub: ffi('void mgos_mqtt_sub(char *, void (*)(void *, void *, int, void *, int, userdata), userdata)'),
_subf: function(conn, topic, len1, msg, len2, ud) {
return ud.cb(conn, fstr(topic, len1), fstr(msg, len2), ud.ud);
return ud.cb(conn, mkstr(topic, len1), mkstr(msg, len2), ud.ud);
},

// ## **`MQTT.sub(topic, handler)`**
Expand Down

0 comments on commit a66eef8

Please sign in to comment.