TYPE_FREQUENCY not working

Im making my school project for IoT lesson and i want to use Frequency widget but when i try using TYPE_FREQUENCY in Cayenne.virtualWrite() methods its not working IDE is not accept this type. I found that use in variable types docs. Take a look code and error:

code: Cayenne.virtualWrite(3, vib, TYPE_FREQUENCY, UNIT_HERTZ);

thank you for solution, it’s work now.

1 Like