Your procedure with the not so great name procedure needs the same input parameter as the AdvancedLocationSensor.NmeaReceived event
There might be further errors...
It would help to start with same basic examples found in the itoo thread before trying something more complex...
See especially the 2 examples in the first post here Open Source • Background Tasks: Itoo
Taifun