SDK Setup Guides
C++
Installing C++ SDK
you can integrate the ditto sdk into c++ projects to develop for linux and ios platforms for a complete overview of the platforms, transports, and devices the c++ sdk supports, see docid\ bwbjwjkhcv6fxmnicjy0u 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 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 3 0/dist/ditto tar gz && tar xvfz ditto tar gz linux aarch64 curl o https //software ditto live/cpp linux aarch64/ditto/4 3 0/dist/ditto tar gz && tar xvfz ditto tar gz 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\ ry xd4ylzmfjxs a9uety 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 for instructions on how to obtain your access credentials, see docid\ jqjyl9gbvsgi9vlw3ywvc for an introduction to authentication in ditto, see ditto basics > docid\ c802c1qiakfga2qxmcywu 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) { }