by bengchet » Mon Apr 04, 2016 10:41 am
Hi,
Yes it is possible in coding. Make 2 variables, let's say int newRSSI=0 and int oldRSSI=0.
The flow:
1. Get updated RSSI and store it to newRSSI.
2. Get the difference between newRSSI and oldRSSI and display the difference in Serial monitor.
3. Copy the value of newRSSI to oldRSSI.
4. Repeat step 1-3.
Try do the coding according to this flow.
P:S: You can try Arduino Serial Plotter and see the graph, requirement: use Serial.println(RSSI) instead of Serial.print(RSSI), println is a must. Add a delay before going back to step 1 from step 4 as sampling time. A delay of 1000 ms meaning 1 sec sampling interval.