include

  1. practicalsoft

    برنامه نویسی "موقعیت کلمه در جمله" به زبان #سی_پلاس_پلاس

    "موقعیت کلمه در جمله" به زبان #سی_پلاس_پلاس // SAMAVi www.samavi.info #include <iostream.h> #include <conio.h> #include <stdio.h> int lenstr(char str[]); int findstr(char str[],char sub[]); void main (void) { char str[100],sub[100]; cout<< "Enter string: "; gets(str); cout<<...
  2. practicalsoft

    B4X FEED include an external library in your code

    I found a library written in object-c on GITHUB that is right for me. I was wondering if it was possible to include it in my project. In B4A (or B4j) I would use #AdditionalJar and call methods with JavaObject. Or I would write a few lines of code (if the library is not complex) and using...
  3. practicalsoft

    B4X FEED Esp32 Bluetooth as server

    I tested a chat example and works well, but this case the android start the connection with ESP32. I need that the ESP32 start a connection with android I found an example for ESP32 as server but the Android aplication doesn´t open a connection Example for arduino sdk with ESP32 Bluetooth as a...
  4. practicalsoft

    B4X FEED Wrapping a library with 2 pairs of .h and .cpp files

    A common CAN.h file looks like this: C++: #ifndef CAN_H #define CAN_H #ifdef ARDUINO_ARCH_ESP32 #include "ESP32SJA1000.h" #else #include "MCP2515.h" #endif #endif[ /CODE] And in the 2 referenced .h files are a common definition of CAN: [CODE=cpp] extern MCP2515Class CAN; extern...
  5. practicalsoft

    B4X FEED Cant connect MQTT broker to Arduino client

    Hi, I have an ESP32 running as an MQTT client in Arduino (shown below); it connects to an MQTT broker I downloaded from Play store. But I can`t get it to connect to the B4A app; I suspect its due to the topic not being used in Arduino. The B4A code worked fine between 2 B4A apps, which I used...
عقب
بالا