Hopefully, the original poster can jump in here with a resolution.
My best guess would be to try and change the frequency using the following code:
DFRobot_WT61PC sensor(&FPSerial);
unsigned long lastTime = 0; // Store the last time we printed the frequency
unsigned long count = 0; // Store the number of times data was received in the last second
void setup()
{
//Use Serial as debugging serial port
Serial.begin(115200);
FPSerial.begin(9600);
sensor.modifyFrequency(DFRobot_WT61PC::FREQUENCY_100HZ);
}
Unfortunately, your code doesn’t work and the error message is the following
In file included from C:\Users\Documents\Arduino\DFRobot SEN0386\sketch_fev05a\sketch_fev05a_test\sketch_fev05a_test.ino:1:0:
C:\Users\Documents\Arduino\DFRobot SEN0386\sketch_fev05a\sketch_fev05a_test\sketch_fev05a_test.ino: In function ‘void setup()’:
c:\Users\Documents\Arduino\libraries\DFRobot_WT61PC/DFRobot_WT61PC.h:36:28: error: expected unqualified-id before numeric constant #define FREQUENCY_100HZ 0X09
^
C:\Users\Documents\Arduino\DFRobot SEN0386\sketch_fev05a\sketch_fev05a_test\sketch_fev05a_test.ino:44:42: note: in expansion of macro ‘FREQUENCY_100HZ’
sensor.modifyFrequency(DFRobot_WT61PC::FREQUENCY_100HZ);
^~~~~~~~~~~~~~~
exit status 1