add update periodically function

added function: "publish topic periodically from when update was called".