Tone function not working on Bluz


On the photon I am calling tone(…) on the RX pin to output a sound to a piezo buzzer. It does not appear to work with a Bluz. Is there any way to get tone support? Or am I perhaps doing something wrong?


Currently this isn’t implemented. There are some functions that we get through the Particle firmware that are actually stubbed out in the bluz firmware. You can always check the docs for the most up-to-date function list, only ones on our docs are officially supported:

In the meantime, is it possible to use analogWrite to generate a tone?



I can use analogWrite to generate the tone.