The same answer here as in the other thread
Put your registration of Particle.variable()
and Particle.function()
before anything else in setup()
otherwise you might miss the registration window after connect.
You can’t register too early, but too late.