-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing data in the UI again, ignoring timestamps for now #1
base: master
Are you sure you want to change the base?
Conversation
…d to be made in onMessageArrived.
src/App.js
Outdated
@@ -13,16 +13,15 @@ const manifolds = {}; | |||
let dirty = false; | |||
|
|||
function bytesToNumber(buffer) { | |||
// const bytes = new Uint8Array(buffer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you don't need this commented out line since there is an uncommented copy right below it.
src/App.js
Outdated
@@ -117,9 +117,13 @@ class App extends Component { | |||
|
|||
// If the field in the message is not one we care about ... | |||
if (!prop) return; | |||
// @TODO parse messages. | |||
// At this point a message has been recieved from the message broker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recieved => received
@@ -132,7 +136,8 @@ class App extends Component { | |||
client.onMessageArrived = onMessageArrived; | |||
|
|||
// Documentation on the message object is at | |||
// https://www.eclipse.org/paho/files/jsdoc/symbols/Paho.MQTT.Message.html#duplicate | |||
// https://www.eclipse.org/paho/files/jsdoc/symbols/Paho.MQTT.Message.html | |||
// #duplicate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does #duplicate mean?
Sorry I've been so slow at looking at this. I've been really busy on my
Monsanto project.
Glad to see you're digging in!
…On Thu, Jun 29, 2017 at 1:25 PM, Jeremy Plack ***@***.***> wrote:
------------------------------
You can view, comment on, or merge this pull request online at:
#1
Commit Summary
- fixes UI updating.
- adds comment explaining modification to mqtt client.
- modification to client _getPayloadString method, adds note for
updated to be made in onMessageArrived.
- read data from buffer - timestamp.
File Changes
- *A* .eslintignore
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-0> (1)
- *M* .eslintrc.json
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-1> (6)
- *M* lib/mqttws31.js
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-2> (825)
- *M* package.json
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-3> (1)
- *M* public/config.json
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-4> (4)
- *M* src/App.js
<https://github.com/mvolkmann/iiot-demo/pull/1/files#diff-5> (62)
Patch Links:
- https://github.com/mvolkmann/iiot-demo/pull/1.patch
- https://github.com/mvolkmann/iiot-demo/pull/1.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE10M7O6_ZFmi_QzI9B33HkmZrVZIzGks5sI-wHgaJpZM4OJsVS>
.
--
R. Mark Volkmann
Object Computing, Inc.
|
Hi Mark, |
No description provided.