BLE and WiFi on same time

Hello to all forum users. I'm back in touch after a bit of absence on the forum, this time to ask for information.

Deriving it from a program found on a German forum dedicated to photovoltaics, I developed a transposition on OPTA of a reading of data from a JK BMS via BLE and everything works quite well.
In this program you search for the BMS, a characteristic and then register to read it at each change. This feature is in fact an exchange area where commands can be sent and the BMS responds with a series of 320 Bytes which however are sent divided into multiple transmissions. The start of the data flow can be identified via a message start header. The transmission from the BMS can occur continuously and the OPTA, I imagine, must always be listening for any notifications.
The fact is that by also implementing the management of a Wifi server to be able to read the data even remotely, it seems that the two things get in the way, since things go differently for the individual (data that is obviously not updated is actually visible from a browser on PC), but when communication is established on BLE the Browser no longer updates the data.
Since I read from multiple sources that BLE and WIFI can be used simultaneously on the OPTA,
my question is:
Using the arduinoBLE.h library and the Wifi.h library, can I simultaneously operate as a Central in BLE and operate as a server listening on WiFi? Or do the two libraries use some resource at the same time and conflict, so these two modes of use cannot be simultaneous?

Thank you

You should be using the ArduinoIoTCloud.h library instead of WiFi.h. This automates the WiFi.h connection process and handles the connection properly, allowing BLE and other processes to work at the same time.

arduino-libraries/ArduinoIoTCloud

1 Like

Grazie!

1 Like