diff --git a/src/network/mqtt/routes/aq.ts b/src/network/mqtt/routes/aq.ts index b56b6f6..b732be0 100644 --- a/src/network/mqtt/routes/aq.ts +++ b/src/network/mqtt/routes/aq.ts @@ -33,9 +33,9 @@ const sub = (client: MqttClient) => { }) } -const pH: Route = { +const aq: Route = { sub, SUB_TOPIC } -export { pH } +export { aq } diff --git a/src/network/mqtt/routes/co2.ts b/src/network/mqtt/routes/co2.ts index 8814b68..d2e5374 100644 --- a/src/network/mqtt/routes/co2.ts +++ b/src/network/mqtt/routes/co2.ts @@ -34,9 +34,9 @@ const sub = (client: MqttClient) => { }) } -const pH: Route = { +const co2: Route = { sub, SUB_TOPIC } -export { pH } +export { co2 } diff --git a/src/network/mqtt/routes/humidity.ts b/src/network/mqtt/routes/humidity.ts index 6fdfa52..f924137 100644 --- a/src/network/mqtt/routes/humidity.ts +++ b/src/network/mqtt/routes/humidity.ts @@ -35,9 +35,9 @@ const sub = (client: MqttClient) => { }) } -const tds: Route = { +const humidity: Route = { sub, SUB_TOPIC } -export { tds } +export { humidity } diff --git a/src/network/mqtt/routes/index.ts b/src/network/mqtt/routes/index.ts index 2f811cd..2a9dbd9 100644 --- a/src/network/mqtt/routes/index.ts +++ b/src/network/mqtt/routes/index.ts @@ -1,4 +1,8 @@ export * from './aq' +export * from './co2' export * from './date' export * from './humidity' +// eslint-disable-next-line import/extensions +export * from './pm2.5' +export * from './pressure' export * from './temperature' diff --git a/src/network/mqtt/routes/pm2.5.ts b/src/network/mqtt/routes/pm2.5.ts index f8767a0..acc7d98 100644 --- a/src/network/mqtt/routes/pm2.5.ts +++ b/src/network/mqtt/routes/pm2.5.ts @@ -34,9 +34,11 @@ const sub = (client: MqttClient) => { }) } -const pH: Route = { +// eslint-disable-next-line camelcase +const pm2_5: Route = { sub, SUB_TOPIC } -export { pH } +// eslint-disable-next-line camelcase +export { pm2_5 } diff --git a/src/network/mqtt/routes/pressure.ts b/src/network/mqtt/routes/pressure.ts index 2574bb9..310e1fb 100644 --- a/src/network/mqtt/routes/pressure.ts +++ b/src/network/mqtt/routes/pressure.ts @@ -35,9 +35,9 @@ const sub = (client: MqttClient) => { }) } -const pH: Route = { +const pressure: Route = { sub, SUB_TOPIC } -export { pH } +export { pressure } diff --git a/src/network/mqtt/routes/temperature.ts b/src/network/mqtt/routes/temperature.ts index f602c9d..01c1427 100644 --- a/src/network/mqtt/routes/temperature.ts +++ b/src/network/mqtt/routes/temperature.ts @@ -41,9 +41,9 @@ const sub = (client: MqttClient) => { }) } -const turbidity: Route = { +const temperature: Route = { sub, SUB_TOPIC } -export { turbidity } +export { temperature }