IoTReplicator.sync()

Perform synchronization with the server database.

For an overview see page Python IoTReplicator Class

Prototype

 
    sync(agent_id, flags)
 

Arguments

agent_id The integer IoT agent_id of the server
flags

A bitmask composed from the following values:

exdb.IoT.SYNC_PUSH = 0x1 Send data to other agent(s)
exdb.IoT.SYNC_PULL = 0x2 Request data from other agent(s)
exdb.IoT.SYNC_NONBLOCK = 0x4 Don't block on the send() operation
exdb.IoT.SYNC_WAIT = 0x8 Wait for replication to complete
exdb.IoT.SYNC_BOTH = (SYNC_PUSH | SYNC_PULL) Send and Request data from other agent(s)

Description

This method performs synchronization with the server database.

Returns

Exception An exception is thrown with the appropriate error message