mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
lint warning changes
This commit is contained in:
@@ -899,17 +899,17 @@ app.get(EMSESP_STATUS_ENDPOINT, (req, res) => {
|
||||
})
|
||||
app.post(EMSESP_DEVICEDATA_ENDPOINT, (req, res) => {
|
||||
const id = req.body.id
|
||||
if (id == 1) {
|
||||
if (id === 1) {
|
||||
const encoded = msgpack.encode(emsesp_devicedata_1)
|
||||
res.write(encoded, 'binary')
|
||||
res.end(null, 'binary')
|
||||
}
|
||||
if (id == 2) {
|
||||
if (id === 2) {
|
||||
const encoded = msgpack.encode(emsesp_devicedata_2)
|
||||
res.write(encoded, 'binary')
|
||||
res.end(null, 'binary')
|
||||
}
|
||||
if (id == 3) {
|
||||
if (id === 3) {
|
||||
const encoded = msgpack.encode(emsesp_devicedata_3)
|
||||
res.write(encoded, 'binary')
|
||||
res.end(null, 'binary')
|
||||
|
||||
Reference in New Issue
Block a user