Add {active, true} example

Correct the passive mode (polling) example and add an example for creating
an active mode device.