Blocking Particle.connect() and publish()

Check this out: