Created
June 27, 2022 12:30
-
-
Save osscontributor/73835f3f4b2548bab2e7693a0e0349f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void subscribeToMqtt(Message message) { | |
executor.cppMethod(); | |
} | |
public class TestExecutor { | |
static { | |
System.loadLibrary("native"); | |
} | |
public native String cppMethod(); | |
} | |
cpp: | |
JNIEXPORT jstring JNICALL methodNAME (JNIEnv* env, jobject thisObject) { | |
printf("START PI TEST! \n"); | |
return env->NewStringUTF("Hello from C++ !!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment