Skip to content

Commit f64142d

Browse files
author
Eric PTAK
authored
feat: uplink simulate (#42)
1 parent 057c0b0 commit f64142d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Services/prometheus.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ class Prometheus extends Request {
3535
payload
3636
});
3737
}
38+
39+
simulateUplink(thing_id, hardware_id, device_type_id, options) {
40+
const path = `/v1/delegate/uplink-simulate`;
41+
const payload = {
42+
thing_id,
43+
hardware_id,
44+
device_type_id,
45+
options
46+
};
47+
48+
return this.send('POST', path, {
49+
isPublic: true,
50+
payload
51+
});
52+
}
3853
}
3954

4055
module.exports = Prometheus;

0 commit comments

Comments
 (0)