Your post was successfully created



Share and learn. Create something amazing with
the collaboration of our great community.

#116 Android unstable connection

When I click on an instance to send a message to it, it disappears immediately. It keeps connecting and disconnecting.

Jocelyne Abi Haidar . May 22, 2018, 4:09 a.m.


#118 [Android] Can i see the amount of packages are transferred though nodes each second by console Log

I want to see the amount of packages transferred to other nodes every second by using Logcat of Android. Is there any possible way to do this?

Bui Quoc Khiem . May 24, 2018, 6:39 a.m.


#155 Can you track progression of data received ?

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 ?

Mick . Aug. 29, 2018, 5:18 a.m.


#156 Can 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.

Mick . Aug. 29, 2018, 9:08 a.m.


#158 The 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.

Sahit Penmatcha . Aug. 31, 2018, 11:50 a.m.


#160 Distinguish 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.

David Aboh . Sept. 12, 2018, 11:53 a.m.


#161 Linux 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 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): ``` version: '2' services: ubuntu: build: ./ubuntu # The privileged mode may help with using Bluetooth. Let's leave it privileged: true # The below is necessary, as Bluez uses D-Bus to communicate with hardware labels: io.resin.features.dbus: '1' # 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. network_mode: 'host' ``` Here is the Dockerfile: ``` FROM resin/%%RESIN_MACHINE_NAME%%-ubuntu:bionic # 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" ARG DEMO="bc" RUN apt-get update && \ apt-get install -y --no-install-recommends $BLUETOOTH $BUILD $DEMO # configure Bluez to work with Hype COPY HelloWorld/ /tmp/hype/ RUN ./tmp/hype/ # build the example project WORKDIR /root 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: ``` root@11b53be:~/HelloWorld/bin# ./linux_demo Hype state change Hype request access token to user identifier: -1 Hype state change Hype started! (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]( However I'm stuck now, as I'm not very experienced in debugging C/C++ programs. Thanks in advance for any help!

Konrad Komorowski . Oct. 1, 2018, 4:02 p.m.