2012-06-01から1ヶ月間の記事一覧

spp_camera.cpp

#if 1 // spp_camera.cpp #include "mbed.h" #include <btstack/hci_cmds.h> #include <btstack/run_loop.h> #include <btstack/sdp_util.h> #include "hci.h" #include "l2cap.h" #include "btstack_memory.h" #include "remote_device_db.h" #include "rfcomm.h" #include "sdp.h" #include "config.h" #include "debug.</btstack/sdp_util.h></btstack/run_loop.h></btstack/hci_cmds.h>…

spp_camera.cpp

#if 1 // spp_camera.cpp #include "mbed.h" #include <btstack/hci_cmds.h> #include <btstack/run_loop.h> #include <btstack/sdp_util.h> #include "hci.h" #include "l2cap.h" #include "btstack_memory.h" #include "remote_device_db.h" #include "rfcomm.h" #include "sdp.h" #include "config.h" #include "debug.</btstack/sdp_util.h></btstack/run_loop.h></btstack/hci_cmds.h>…

spp.py

# -*- coding: utf-8 -*- # spp.py 2012.6.28 import serial from optparse import OptionParser class spp: def __init__(self, port = "COM10"): self.ser = serial.Serial(port) def getImage(self): self.image_data = "" while True: line = self.ser.r…