Azure / Azure/azure-iot-hub-node

The sample code for samples/send_c2d_message.js has incorrect comment

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
18
PR merge metrics
No merged PRs in 30d

Description

// Create a message and send it to the IoT Hub every second. -----> this just polls Iothub's C2D device queue.
setInterval(function () {
var data = JSON.stringify({ text : 'foo' });
var message = new Message(data);
console.log('Sending message: ' + message.getData());
client.send(targetDevice, message, printResultFor('send'));
}, 2000);
}
});

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.