Update write_lednode.rb

Added pubsub publishing