Install Guides
C++
you can integrate the ditto sdk into c++ projects to develop for linux and ios platforms to install the c++ sdk fetch and extract the ditto package ( /#downloading and unpacking ditto ) configure your app to link to the ditto static library ( /#linking to ditto ) downloading and unpacking ditto linux download ditto tar gz and unpack an archive containing the libditto a static library and ditto header linux x86 64 curl o https //software ditto live/cpp linux x86 64/ditto/4 8 2/dist/ditto tar gz && tar xvfz ditto tar gz linux aarch64 curl o https //software ditto live/cpp linux aarch64/ditto/4 8 2/dist/ditto tar gz && tar xvfz ditto tar gz android the ditto c++ sdk for android is available in the maven central repository https //central sonatype com/artifact/live ditto/ditto cpp linking to ditto add lditto as a compilation step in the main cpp source file for instructions on adding cross platform bluetooth low energy (le) capabilities, see docid\ gpnhy 1 kdnqahphcoxfi bluez is the official bluetooth protocol stack implementation for linux systems to communicate with other bluetooth enabled platforms linux # this command assumes \# you have unzipped the ditto tar gz in a relative directory /sdk/ \# your main code entry point is in /src/main cpp g++ std=c++17 /src/main cpp i /sdk lditto ldl lrt pthread l /sdk o dist/main; \# once executed, your output will be available at /dist/main ios #this command assumes \# you have unzipped the ditto tar gz in a relative directory /sdk/ \# your main code entry point is in /src/main cpp g++ std=c++17 /src/main cpp i /sdk lditto ldl framework security,corefoundation,corebluetooth,objc pthread l /sdk o dist/main; \# note by adding the " framework security,corefoundation,corebluetooth,objc ," you enable the c++ sdk to leverage ios peer to peer networks \# once executed, your output will be available at /dist/main importing ditto from the source code of your app, using #include \<ditto h> , import ditto and provide your access credentials auto identity = identity onlineplayground("your app id", "playground token", true); try { ditto ditto = ditto(identity, dir); ditto set minimum log level(loglevel debug); ditto start sync(); } catch (const dittoerror \&err) { }