setMode

Set mode: ONLINE or OFFLINE.