<commit_before>var Client = require("./owfs").Client;
var net = require("net");
var argv = require('optimist').argv;

var HOST = argv.host?argv.host:'raspberrypi';
var PORT = argv.port?argv.port:4304;
console.log("Connecting to "+HOST+":"+PORT);
var c = new Client(HOST, PORT);

c.dir('/', function(result){
	console.log(result);
	c.dir(result[0], function(res2){
		console.log(res2)
	})
});
/*
c.write('/simultaneous/temperature', 1, function(){
	setTimeout(function(){
		c.read('/10.E89C8A020800/temperature', function(result){
			console.log(result);
		});
	}, 1000);

});*/
<commit_msg>updated example<commit_after>var Client = require("../owfs").Client;
var net = require("net");
var argv = require('optimist').argv;

var HOST = argv.host?argv.host:'raspberrypi';
var PORT = argv.port?argv.port:4304;
console.log("Connecting to "+HOST+":"+PORT);
var c = new Client(HOST, PORT);

c.dir('/', function(result){
	console.log(result);
	c.dir(result[0], function(res2){
		console.log(res2)
	})
});

c.read('/10.67C6697351FF/temperature', function(result){
	console.log(result);
});

{'fraction_non_alphanumeric': 0.21554116558741906, 'fraction_numerical': 0.037927844588344126, 'mean_word_length': 5.679012345679013, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1952816', 'n_tokens_mistral': 423, 'n_tokens_neox': 390, 'n_words': 70}