<commit_before>

var ble = require("org.beuckman.tible");

ble.addEventListener("state", function(e){
    $.status.text = e.state;
	switch (e.state) {
        case "on": 
            $.status.color = "#0a0";
           break;
        case "off": 
            $.status.color = "#666";
           break;
      default:
          break;
	}
});

ble.addEventListener("discover", function(e){

	var d = Alloy.Collections.BleDevice.get(e.uuid);
	
	if (d) {
		d.set("rssi", e.rssi);
	}
	else {
		var d = Alloy.createModel("BleDevice", e);
		Alloy.Collections.BleDevice.add(d);
	}
	
});
ble.addEventListener("connect", function(e){
	alert(e);
});
ble.addEventListener("connectFail", function(e){
	alert(e);
});
ble.addEventListener("disconnect", function(e){
	alert(e);
});

ble.addEventListener("services", function(e){
//	alert(e);
});
ble.addEventListener("characteristics", function(e){
	alert(e);
});
ble.addEventListener("value", function(e){
	alert(e);
});


// scan for all service UUIDs
ble.startScan();

require("ble/ble").registerService();

$.index.open();




<commit_msg>ble module reporting service uuids<commit_after>

var ble = require("org.beuckman.tible");

ble.addEventListener("state", function(e){
    $.status.text = e.state;
	switch (e.state) {
        case "on": 
            $.status.color = "#0a0";
           break;
        case "off": 
            $.status.color = "#666";
           break;
      default:
          break;
	}
});

ble.addEventListener("discover", function(e){

	var d = Alloy.Collections.BleDevice.get(e.uuid);
	
	if (d) {
		d.set("rssi", e.rssi);
	}
	else {
		var d = Alloy.createModel("BleDevice", e);
		Alloy.Collections.BleDevice.add(d);
	}
	
});
ble.addEventListener("connect", function(e){
	alert(e);
});
ble.addEventListener("connectFail", function(e){
	alert(e);
});
ble.addEventListener("disconnect", function(e){
	alert(e);
});

ble.addEventListener("services", function(e){
//	alert(e);
});
ble.addEventListener("characteristics", function(e){
	alert(e);
});
ble.addEventListener("value", function(e){
	alert(e);
});


$.index.open();


// scan for all service UUIDs
ble.startScan();

require("ble/ble").registerService();





{'fraction_non_alphanumeric': 0.1957720588235294, 'fraction_numerical': 0.004595588235294118, 'mean_word_length': 3.4610655737704916, 'pattern_counts': {'":': 4, '<': 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': '7186418', 'n_tokens_mistral': 768, 'n_tokens_neox': 735, 'n_words': 130}