Coder Social home page Coder Social logo

miguellan / coblue-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cocoahuke/coblue-control

0.0 2.0 0.0 2.63 MB

Program for interacting with coBlue. Provides C function interface for sending commands and file transfers, has been made into readline interactive command

License: MIT License

Makefile 1.69% C 3.78% Objective-C 94.53%

coblue-control's Introduction

coBlue - Control side

Program for interacting with coBlue. Provides C function interface for sending commands and file transfers, has been made into readline interactive command

Contact build license paypal

Interactive command

coBlue console:
coget		coBlue filetransfer get operation
coread	coBlue filetransfer read operation
coput		coBlue filetransfer put operation
help		Show all availble cmds
clear		Clear the terminal screen
quit		Exit program
exit		Exit program

Interface

int coblue_terminal(char *cmd);
int coblue_fileTransfer_get(char *remotepath,char* localpath);
int coblue_fileTransfer_read(char *remotepath);
int coblue_fileTransfer_put(char *localpath,char* remotepath);
void coblue_quit();

code of the interface is very short, Easy to modify it and customize to your project

How to use

Download

git clone https://github.com/cocoahuke/coblue-control.git \
&& cd coblue-control

Set device name and verify key in config.h

char coblue_device_name[] = "WRITE YOUR DEVICE NAME HERE";
char coblue_verify_key[] = "WRITE YOUR VERIFY KEY HERE";

Device name is the name of the coBlue BLE Peripherals which listed when scanning, default name is orange, you can specify by -name in coBlue

verify key, it will send verify key immediately after the connection establish, set key by -verifyw in coBlue

Compile and install to /usr/local/bin/

make
make install

Play with coBlue

Make sure coBlue is running in the linux device and in the effective range
Execute coblue-control and enter any command

After enter the first command will automatically start looking for device, and start establish connection

if need Uninstall

make uninstall

Demo (Modify the wpa configuration file)

sample1

sample2

coblue-control's People

Contributors

cocoahuke avatar

Watchers

James Cloos avatar Beach Cities Software, LLC avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.