Hi,
I use a B4A program to wirelessly communicate with a microcontroller. I am using three different communication methods, depending on the demands: Bluetooth connection and WiFi via TCP, either local or via the internet. So, I have three versions that shall do all the same with the transmitted data. The problem is how to "synchronize" the changes I am doing on the data evaluation code (of course first done in one of the three versions). Unfortunately, the initializations for those different transmission methods are somehow scattered between some subroutines and definitions.
It would be a big help if there were some kind on conditional compilation to have just one data evaluation code and steering the compilation based on one parameter to choose which communication methods is to be used.
Could anyone suggest a solution?
Thanks, positrom2
I use a B4A program to wirelessly communicate with a microcontroller. I am using three different communication methods, depending on the demands: Bluetooth connection and WiFi via TCP, either local or via the internet. So, I have three versions that shall do all the same with the transmitted data. The problem is how to "synchronize" the changes I am doing on the data evaluation code (of course first done in one of the three versions). Unfortunately, the initializations for those different transmission methods are somehow scattered between some subroutines and definitions.
It would be a big help if there were some kind on conditional compilation to have just one data evaluation code and steering the compilation based on one parameter to choose which communication methods is to be used.
Could anyone suggest a solution?
Thanks, positrom2