onMagneticFieldReceived

A callback function called whenever magnetic field data is received.