Function sourceResync

  • Publish every module's state and every model's metadata to the MQTT brokers again. With clear, everything PlaceOS publishes is removed from the brokers first, for when what they hold has drifted. Runs in the background; follow it with sourceResyncStatus. Rejects with a 409 while one is running. Needs a system admin.

    Parameters

    • clear: boolean = false

    Returns Promise<PlaceSourceResyncStatus>