Testing: link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HCI sniffer - Bluetooth packet analyzer ver 5.24 | |
| device: hci0 snap_len: 1500 filter: 0xffffffff | |
| < HCI Command: Set Event Mask (0x03|0x0001) plen 8 | |
| Mask: 0xfffffbff07f8bf3d | |
| > HCI Event: Command Complete (0x0e) plen 4 | |
| Set Event Mask (0x03|0x0001) ncmd 1 | |
| status 0x00 | |
| < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 | |
| mask 0x1f00000000000000 (Reserved) | |
| > HCI Event: Command Complete (0x0e) plen 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tue, 27 Oct 2015 08:25:11 GMT yosemite-bindings sendCBMsg: 1, { | |
| "kCBMsgArgName": "node-1445934311172", | |
| "kCBMsgArgOptions": { | |
| "kCBInitOptionShowPowerAlert": 0 | |
| }, | |
| "kCBMsgArgType": 0 | |
| } | |
| Tue, 27 Oct 2015 08:25:11 GMT yosemite-bindings xpcEvent: { | |
| "kCBMsgId": 6, | |
| "kCBMsgArgs": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require | |
| '[figwheel-sidecar.repl-api :as ra] | |
| '[com.stuartsierra.component :as component]) | |
| (def figwheel-config | |
| {:figwheel-options | |
| {:websocket-host "sanderbook.local"} | |
| :build-ids ["dev"] | |
| :all-builds | |
| [{:id "dev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defrecord LogPrinter [combined logs] | |
| component/Lifecycle | |
| (start | |
| [this] | |
| (let [combined (chan)] | |
| (doseq [[key log] logs] (async/pipe log combined)) | |
| (go (loop [{:keys [type data session] :as line} (<! combined)] | |
| (when line | |
| (println (str "[LOG " session type "]") data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on: https://developer.mbed.org/forum/team-63-Bluetooth-Low-Energy-community/topic/5257/ | |
| cmake_minimum_required(VERSION 2.8) | |
| project(PROJECT) | |
| set(ARMGCC_PREFIX | |
| ${PROJECT_SOURCE_DIR}/../../tools/arm/gcc-arm-none-eabi-4_9-2015q2) | |
| set(MBED_SRC_PATH | |
| ${PROJECT_SOURCE_DIR}/../../lib/mbed/libraries/mbed) | |
| set(BLE_API_SRC_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (start | |
| [{:keys [control log writings spec] :as this}] | |
| (go (>! log :started) ;; this is line 58 | |
| (loop [[conn stop-conn] (connect this) | |
| [disconnect disconnected] nil] | |
| (match (async/alts! (filter some? [control conn disconnected writings])) | |
| [:stop control] (do (>! log :stopped) | |
| (when disconnect (disconnect)) | |
| (when stop-conn (stop-conn))) | |
| [nil conn] (recur (connect this) nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var noble = require('noble'); | |
| var uuid = 'FIXME'; | |
| var charuuid = '2a37'; | |
| var srvuuid = '180d'; | |
| var fmt = 1; | |
| noble.on('discover', function(p) { | |
| if (uuid != p.uuid) return; | |
| console.log('ja'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require '[figwheel-sidecar.repl-api :as repl]) | |
| (def config | |
| {:figwheel-options {} | |
| :build-ids ["browser"] | |
| :all-builds [{:id "browser" | |
| :source-paths ["src/" "env/browser/"] | |
| :figwheel {:on-jsload "id.client/main"} | |
| :compiler {:output-to "public/js/app.js" | |
| :output-dir "public/js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "State": { | |
| "Error": "", | |
| "ExitCode": 137, | |
| "FinishedAt": "2015-06-10T19:29:36.648099315Z", | |
| "OOMKilled": false, | |
| "Paused": false, | |
| "Pid": 0, | |
| "Restarting": false, | |
| "Running": false, | |
| "StartedAt": "2015-06-02T03:35:10.784662035Z" |