Update examples/samples/publisher.cpp