Hi mainul, the code in this example will wait for new data to be available from the sensors before publishing. In my configuration, the noise sensor is set to 20kHz ADC sampling with 30samples per RMS output -> 20kHz/30 = 667Hz (RMS) and T_Sampling(RMS) = 1/667Hz = 1.5ms The BMA280 is set to 500Hz sampling frequency -> 2ms Sampling Time. I don't see all your configuration, but along with the sensors, this sampling times will add up an influence the MQTT output data rate, Basically this example was meant to be simple to understand but this simplicity restricts it to be for low data rates (1s). Other programs that need higher performance are more complex (like the datalogger) and require better understanding of the MEMS interrupt engines and the RTOS inter-task communication system to work out. Best regards, Francisco Llobet
... View more