Morse Micro IoT SDK  2.9.7

Detailed Description

Functions

static enum mmagic_status mmagic_controller_get_ntp_server (struct mmagic_controller *controller, struct string254 *var)
 Gets server setting for module ntp. More...
 
static enum mmagic_status mmagic_controller_set_ntp_server (struct mmagic_controller *controller, const char *var)
 Sets server setting for module ntp. More...
 
static enum mmagic_status mmagic_controller_ntp_commit_all (struct mmagic_controller *controller)
 Saves all settings from persistent store. More...
 

Function Documentation

◆ mmagic_controller_get_ntp_server()

static enum mmagic_status mmagic_controller_get_ntp_server ( struct mmagic_controller *  controller,
struct string254 var 
)
inlinestatic

Gets server setting for module ntp.

The hostname or IP of the NTP server. Defaults to "0.pool.ntp.org".

Parameters
controllerReference to the controller handle.
varReference to the string254 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5327 of file mmagic_controller.h.

◆ mmagic_controller_ntp_commit_all()

static enum mmagic_status mmagic_controller_ntp_commit_all ( struct mmagic_controller *  controller)
inlinestatic

Saves all settings from persistent store.

Parameters
controllerReference to the controller handle.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5384 of file mmagic_controller.h.

◆ mmagic_controller_set_ntp_server()

static enum mmagic_status mmagic_controller_set_ntp_server ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets server setting for module ntp.

The hostname or IP of the NTP server. Defaults to "0.pool.ntp.org".

Parameters
controllerReference to the controller handle.
varThe string254 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5353 of file mmagic_controller.h.