File tree Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ export const locationDataFromCOAPToLwm2m = (
55 location : LocationData ,
66 ts : number ,
77) : LwM2MObjectInstance [ ] => [
8- {
9- ObjectID : 14201 ,
10- ObjectVersion : '1.0' ,
11- ObjectInstanceID : location . src === 'WIFI' ? 1 : 0 ,
12- Resources : {
13- '0' : location . lat ,
14- '1' : location . lon ,
15- '3' : location . uncertainty ,
16- '6' : location . src ,
17- '99' : ts / 1000 ,
18- } ,
8+ {
9+ ObjectID : 14201 ,
10+ ObjectVersion : '1.0' ,
11+ ObjectInstanceID : location . src === 'WIFI' ? 1 : 0 ,
12+ Resources : {
13+ '0' : location . lat ,
14+ '1' : location . lon ,
15+ '3' : location . uncertainty ,
16+ '6' : location . src ,
17+ '99' : ts / 1000 ,
1918 } ,
20- ]
19+ } ,
20+ ]
Original file line number Diff line number Diff line change 11import { type IoTClient , DescribeThingCommand } from '@aws-sdk/client-iot'
22
3- export const thingExists = (
4- iotClient : IoTClient ) => async (
5- thingName : string ,
6- ) : Promise < boolean > => {
7- try {
8- await iotClient . send ( new DescribeThingCommand ( { thingName } ) )
9- return true
10- } catch {
11- return false
3+ export const thingExists =
4+ ( iotClient : IoTClient ) =>
5+ async ( thingName : string ) : Promise < boolean > => {
6+ try {
7+ await iotClient . send ( new DescribeThingCommand ( { thingName } ) )
8+ return true
9+ } catch {
10+ return false
11+ }
1212 }
13- }
You can’t perform that action at this time.
0 commit comments