<commit_before>-- bl = require("batterylevel")

m = mqtt.Client("ESP8266", 120, "user", "password")

-- register going offline event
m:on("offline", function(con) print ("offline event") end)

function pub() 
  -- m:publish("batterylevel",bl.getvolts(),0,0, function(conn) print("sent") end)
  m:publish("batterylevel", 999,0,0, function(conn) print("sent") end)
end

m:connect("10.0.0.5", 1883, 0, function(conn)
     print("connected to broker") pub() end
)<commit_msg>tinkering with mqtt code<commit_after>-- bl = require("batterylevel")

m = mqtt.Client("ESP8266", 120, "user", "password")

-- register going offline event
m:on("offline", function(con) print ("offline event") end)

function pub() 
  -- m:publish("batterylevel",bl.getvolts(),0,0, function(conn) print("sent") end)
  m:publish("batterylevel", 555,0,0, function(conn) print("sent") end)
end

m:connect("10.0.0.7", 1883, 0, function(conn)
     print("connected to broker") pub() end
)
{'fraction_non_alphanumeric': 0.19517313746065057, 'fraction_numerical': 0.05036726128016789, 'mean_word_length': 5.814285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5284370', 'n_tokens_mistral': 378, 'n_tokens_neox': 344, 'n_words': 81}