writeDatetime

open fun writeDatetime(@Nullable date: @Nullable Date, @Nullable timeZone: @Nullable TimeZone, @NotNull callback: @NotNull McuMgrCallback<McuMgrOsResponse>)

Write the date and time on the device (asynchronous).

If date or timeZone are null, the current value will be used.

Parameters

date

the date to set the device to.

timeZone

the timezone to use with the date.

callback

the asynchronous callback.


@NotNull
open fun writeDatetime(@Nullable date: @Nullable Date, @Nullable timeZone: @Nullable TimeZone): @NotNull McuMgrOsResponse

Write the date and time on the device (synchronous).

If date or timeZone are null, the current value will be used.

Return

The response.

Parameters

date

the date to set the device to.

timeZone

the timezone to use with the date.

Throws