# mco_iot_replicator_set_level

Changes the level of the router at runtime.

### For an overview see page ARF Applications in C

### Prototype

        MCO_RET mco_iot_replicator_set_level(mco_iot_replicator_h repl,
                                uint2 level);

### Arguments

repl | The replicator object
level | The new `level` for the router

### Description

This function changes the level of the router at runtime.

### Return Codes

MCO_S_OK | `Replicator` successfully stopped
MCO_E_IOT_INCOMPATIBLE_LEVEL | Attempt to change the basic type (device, router or server) of the node, e.g. set level=1 for the router

### Files

Header file:
mcoiot.h
Source file:
mcoiotrepl.c
Library:
libmcoiotrepl.a