So this is done when sending data, and I read the doc mentioning this possibility in a near future (onMessageReceived). So can this feature be available for next version ?
. Aug. 29, 2018, 5:18 a.m.
#156Can you always use the best available transport type when several are activated ?
So transfer between iOS and Android is my main focus. I set BLE + Wifi_Infra as mentioned for it to work. I came to the conclusion that sometimes BLE is used also to transfer data, and not just detect devices. Which is problematic for me because transfert rate of BLE is inapropriate for images. Too slow !
So when several transport types are set, can you always use the one with best transfert rate to do data transfert ?
Performance will be far better like this.
. Aug. 29, 2018, 9:08 a.m.
#158The device certificate could not be fetched from the Hype server.
I tried on both the HypeChatIOS and HypeChatAndroid Demos and they both give this error. My access token is ceae1XXXXXXXXXX and my app id is c2XXXXX.
. Aug. 31, 2018, 11:50 a.m.
#160Distinguish Direct instance vs mesh/hop instance
Is it possible, now or in a planned release, to distinguish between an instance found through a direct link or an instance found through a hop/mesh?
One use case for this would be to efficiently allow instances first query direct links for, say an “app state” without reaching across the mesh network.
. Sept. 12, 2018, 11:53 a.m.
#161Linux HelloWorld app - problems running the app on Raspberry Pi Model 3B+ (Resin host OS, Ubuntu 18.04 container OS)
Hey! Thanks for writing this awesome framework!
I'm trying to get it up and running on Raspberry Pi, inside a Ubuntu-based Resin.io container.
Here is my `docker-compose.yml` file (the container is a little bit overprivileged now, I want it to work first and then take away unnecessary privileges one by one):
# The privileged mode may help with using Bluetooth. Let's leave it
# The below is necessary, as Bluez uses D-Bus to communicate with hardware
# The below is allegedly "necessary for features such as Bluetooth". Let's
# leave it on for now, and see if we can turn it off.
Here is the Dockerfile:
# set the D-Bus to communicate with the host system
ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
# install packages
ARG BLUETOOTH="bluez libbluetooth-dev"
ARG BUILD="clang cmake make"
RUN apt-get update && \
apt-get install -y --no-install-recommends $BLUETOOTH $BUILD $DEMO
# configure Bluez to work with Hype
COPY HelloWorld/configure.sh /tmp/hype/
# build the example project
COPY HelloWorld/CMakeLists.txt HelloWorld/
COPY HelloWorld/src HelloWorld/src
COPY HelloWorld/lib/hype/armhf HelloWorld/lib/hype
RUN mkdir HelloWorld/build
RUN cd HelloWorld/build && cmake .. && make
# this container does not run any particular process, its purpose is only to be inspected
CMD ["tail", "-f", "/dev/null"]
I also made some changes to the source code:
1. Commented out `CMakeLists.txt` lines which force clang version 4.0 (Ubuntu Bionic's default of 6.0 seems to work fine).
2. Moved the SDK files one directory up from the `armhf` dir (as you can see in the Dockerfile), otherwise header files weren't found by the compiler.
3. Modified the .gitignore file to stop excluding the SDK (turns out that Docker respects it in the `COPY` command).
Now to my problem. The program compiles just fine, but outputs this message when starting up:
Hype state change
Hype request access token to user identifier: -1
Hype state change
(standard_in) 1: illegal character: :
(standard_in) 1: syntax error
sh: 1: [: -eq: unexpected operator
It doesn't exit with an error, but it also doesn't detect another device. I have two Raspberry Pi's running the same software, both showing the same error.
How would I go about debugging this?
I think it's related to the `bc` program. HelloWorld app was initially complaining about `bc` command not existing and there is [a similar-looking Stack Overflow question](https://stackoverflow.com/questions/3143529/standard-in-error-in-bash-script).
However I'm stuck now, as I'm not very experienced in debugging C/C++ programs.
Thanks in advance for any help!
. Oct. 1, 2018, 4:02 p.m.
Are you ready to build something great?
The Hype SDK creates peer-to-peer secure mesh networks between nearby devices, even without Internet.