How to make cloud gateway show online?

if local IOTedge didn’t send message within 270s, cloud sub-device will show disconnect.

if set up hear beat in local IOTedge , cloud gateway will show online.