Skip to content

Commit

Permalink
Merge pull request Azure#76 from Azure/anhashia-loader_update
Browse files Browse the repository at this point in the history
Added loaders for Linux
  • Loading branch information
aribeironovaes authored Dec 21, 2016
2 parents fac49ca + bc07d07 commit d174b02
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions samples/nodejs_simple_sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,22 @@ On a terminal windows follow these steps:
Here is a sample of the gateway_sample.json file filled:
```
{
"loaders": [
{
"type": "node",
"name": "node",
"configuration": {
"binding.path": "../../../build/bindings/nodejs/libnodejs_binding.so"
}
}
],
"modules": [
{
"name": "node_printer",
"loader": {
"name": "node",
"main.path": "./samples/nodejs_simple_sample/nodejs_modules/printer.js"
"main.path": "../../../samples/nodejs_simple_sample/nodejs_modules/printer.js"
},
"args": null
},
Expand All @@ -137,7 +147,7 @@ Here is a sample of the gateway_sample.json file filled:
"loader": {
"name": "node",
"entrypoint": {
"main.path": "./samples/nodejs_simple_sample/nodejs_modules/sensor.js"
"main.path": "../../../samples/nodejs_simple_sample/nodejs_modules/sensor.js"
}
},
"args": null
Expand All @@ -147,7 +157,7 @@ Here is a sample of the gateway_sample.json file filled:
"loader": {
"name": "node",
"entrypoint": {
"main.path": "./samples/nodejs_simple_sample/nodejs_modules/iothub_writer.js"
"main.path": "../../../samples/nodejs_simple_sample/nodejs_modules/iothub_writer.js"
}
},
"args": {
Expand All @@ -159,7 +169,7 @@ Here is a sample of the gateway_sample.json file filled:
"loader": {
"name": "native",
"entrypoint": {
"module.path": "../../modules/logger/liblogger.so"
"module.path": "../../../build/modules/logger/liblogger.so"
}
},
"args": {
Expand All @@ -182,4 +192,20 @@ Here is a sample of the gateway_sample.json file filled:
}
]
}
```
```

On successful run you should see **sample** output like this

`````
Gateway is running. Press return to quit.
printer.receive - 47, 33
printer.receive - 11, 12
printer.receive - 39, 30
printer.receive - 30, 21
printer.receive - 12, 0
Gateway is quitting
printer.destroy
sensor.destroy
iothub_writer.destroy
`````

0 comments on commit d174b02

Please sign in to comment.