#Pasco capstone disconnect from logging serial
If you know the device's 6-digit serial ID (printed on the device) you can quickly scan and connect using the command: Value is 0.05 seconds which allows for a maximum of 20 commands per second to be sent. Reason we have a TIME_DELAY variable that allows the user to speed up or slow down communication. On some computers, this may be a bit tooįast where the Bluetooth Sensor cannot keep up with the speed of the commands the computer is sending. Time/Speed Parameterīy default, Python code tries to run as fast as possible on a computer.
This will keep the connection active without requesting any new data. To keep the device on, call the device.keepalive() method. PASCO's Bluetooth sensors will turn off after 5 minutes of no activity. Returns a list of available devicesĭnnect(ble_device: BLEDevice) Connect to a device using the object returned from the scan command.ĭnnect_by_id(pasco_device_id: string) Connect to a device using the name returned from the scan command.ĭevice.disconnect() Disconnect from a deviceĭevice.is_connected Returns true/false to tell device connection stateĭevice.get_sensor_list() Get a list of sensors that a device hasĭevice.get_measurement_list(sensor_name: string ) Returns all the measurements that a device hasĭevice.read_data(measurement: string) Get a single reading from a single measurementĭevice.read_data_list(measurements: List) Get a list of readings for multiple measurementsĭevice.get_measurement_unit(measurement) Get the default units for a single measurementĭevice.get_measurement_unit_list(measurements: List) Get a list of default units for multiple measurements
#Pasco capstone disconnect from logging install
To install the package into your Python environment pip install pasco Create your own data collection application, use sensors to interact with other hardware devices, or come up with your own clever solution! How do I get started? This PASCO Python library allows users to connect to PASCO Wireless sensors using Python.