Changes

Jump to: navigation, search
no edit summary
In the output console, the messages relating to the transmission of such data will be visible:<pre class="board-terminal">[IoTHubMonitor] [5:16:56 PM] Message received from [sbcx/SimulatedTemperatureSensor]:{ "body": { "machine": { "temperature": 100.66939129711574, "pressure": 10.076259768025844 }, "ambient": { "temperature": 20.67014677551116, "humidity": 24 }, "timeCreated": "2019-08-19T15:16:56.5401594Z" }, "applicationProperties": { "sequenceNumber": "184", "batchId": "39f619d0-72ff-4c1f-9474-294158b70db2" }}</pre>
Another method The transmission of data can be verified on the edge device too by issuing the following command: <pre class="board-terminal">armbian@sbcx:~$ sudo iotedge logs SimulatedTemperatureSensor -f[2019-08-19 15:00:52 +00:00]: Starting ModuleSimulatedTemperatureSensor Main() started.Initializing simulated temperature sensor tosend 500 messages, at an interval of 5 seconds.To change this, set the environment variable MessageCount to the number of messages that should be sent (set it to -1 to send unlimited messages).Information: Trying to initialize module client using transport type [Amqp_Tcp_Only].Information: Successfully initialized module client of transport type [Amqp_Tcp_Only]. 08/19/2019 15:01:32> Sending message: 1, Body: [{"machine":{"temperature":20.830871543186191,"pressure":0.9807322011224775},"ambient":{"temperature":20.538326477649775,"humidity":26},"timeCreated":"2019-08-19T15:01:31.9148845Z"}] 08/19/2019 15:01:38> Sending message: 2, Body: [{"machine":{"temperature":21.013124713447468,"pressure":1.0014952205193317},"ambient":{"temperature":21.149835604079922,"humidity":26},"timeCreated":"2019-08-19T15:01:38.1592817Z"}] 08/19/2019 15:01:43> Sending message: 3, Body: [{"machine":{"temperature":22.038820587465921,"pressure":1.1183466492049783},"ambient":{"temperature":21.027865147929575,"humidity":25},"timeCreated":"2019-08-19T15:01:43.206327Z"}] </pre>
4,650
edits

Navigation menu