The location is updated sporadically while the hub is connected. When it gets disconnected, the current location is stored. If you want to receive continous location updates, use mobile.location.
const onHubLocationChange = (value: Placemark, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.app.hubLocation.read(onHubLocationChange); // Instantly get the current value
COBI.app.hubLocation.subscribe(onHubLocationChange);
COBI.app.hubLocation.unsubscribe(onHubLocationChange);
const onHubLocationChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.app.hubLocation.read(onHubLocationChange); // Instantly get the current value
COBI.app.hubLocation.subscribe(onHubLocationChange);
COBI.app.hubLocation.unsubscribe(onHubLocationChange);