MCPcopy Create free account
hub / github.com/bytespider/Meross / configureDeviceTime

Method configureDeviceTime

packages/lib/src/device.ts:217–232  ·  view source on GitHub ↗
(
    timestamp: number,
    timezone: string | undefined = undefined
  )

Source from the content-addressed store, hash-verified

215 }
216
217 async configureDeviceTime(
218 timestamp: number,
219 timezone: string | undefined = undefined
220 ) {
221 deviceLogger.info(
222 `Configuring system time for device ${this.id} with timestamp ${timestamp} and timezone ${timezone}`
223 );
224
225 const message = new ConfigureDeviceTimeMessage({
226 timestamp,
227 timezone,
228 });
229
230 await this.sendMessage(message);
231 return;
232 }
233
234 async configureMQTTBrokersAndCredentials(
235 mqtt: string[],

Callers 1

configureDeviceTimeFunction · 0.80

Calls 1

sendMessageMethod · 0.95

Tested by

no test coverage detected