# Cellular.connecting() "undefined reference"

**URL:** https://community.particle.io/t/cellular-connecting-undefined-reference/38321
**Category:** Troubleshooting
**Created:** [December 23, 2017, 3:59am UTC](https://community.particle.io/t/cellular-connecting-undefined-reference/38321 "2017-12-23T03:59:26Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![runfastman](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@runfastman](https://community.particle.io/u/runfastman)
#### Post date: [December 23, 2017, 5:21pm UTC](https://community.particle.io/t/cellular-connecting-undefined-reference/38321/9 "2017-12-23T17:21:26Z")

</div>

Thanks, that makes it easier. But are you saying I don't need to wait for until Cellular.connecting() == false? In this post from you it says I do.

> [@How to retain control of an Electron using Cellular.on and Cellular.off](https://community.particle.io/t/how-to-retain-control-of-an-electron-using-cellular-on-and-cellular-off/25158/10):
>
> @TimHockley did you manage to solve this issue somehow? I’m also experiencing similar problems; when dropping connectivity due to poor signal, and the Electron stays in that area for a longer period of time, going back into areas where signal is good the Electron just keeps flashing green without being able to reconnect to the cloud. I’m also unable to call Cellular.off to try and reboot the GSM-module. The only solutions I found so far is manually resetting the device, which really is sub-optim…

"When your device is flashing green it tries to connect. So it would be adviasble to first end any of these connection attempts via Cellular.disconnect() and only then when Cellular.connecting() == false call Cellular.off(), but since the module needs some time to comply with the network demands, some blocking behaviour is to be expected."

---

_[View the full topic](https://community.particle.io/t/cellular-connecting-undefined-reference/38321)._
