Particle.function() doesn't work on both devices

I have a function with the same name exposed to the cloud on two devices.

Particle.function(“somename”, funcname);

The funny thing is one device has the function exposed in the console and is callable via api, the one connecting later doesn’t show anything and is not connectable.
Changing “somename” to something unique like System.DeviceID + “_somename” fixes the problem.
I don’t understand this behavior because it is necessary to call a function using it’s Device ID anyway.
Is this normal?

Weird. Now it works for both without the unique name.

1 Like