BLE Esp32 - How to read uint8_t data recieved?

Hi every one,

I tried to find some information about this topic but I´ve not found anything specific.
I'm using exactly the BLE Client Sample sketch to connect to other server and recieve data.

It works fine, connect and really recieve data, but its in uint8_t format so my data in Serial.print look like this:

data: R⸮⸮

There is a way to convert this information to int and be readable? I'm need this in numeric format.
The last line prints this data.

#include "BLEDevice.h"
//#include "BLEScan.h"

// The remote service we wish to connect to.
static BLEUUID serviceUUID("4fafc201-1fb5-459e-8fcc-c5c9c331914b");
// The characteristic of the remote service we are interested in.
static BLEUUID charUUID("beb5483e-36e1-4688-b7f5-ea07361b26a8");

static boolean doConnect = false;
static boolean connected = false;
static boolean doScan = false;
static BLERemoteCharacteristic* pRemoteCharacteristic;
static BLEAdvertisedDevice* myDevice;

static void notifyCallback(
BLERemoteCharacteristic* pBLERemoteCharacteristic,
uint8_t* pData,
size_t length,
bool isNotify) {
Serial.print("Notify callback for characteristic ");
Serial.print(pBLERemoteCharacteristic->getUUID().toString().c_str());
Serial.print(" of data length ");
Serial.println(length);
Serial.print("data: ");
Serial.println((char*)pData);

It really depends on what you are sending.... How many bytes are you receving? Is this supposed to be a single number (int)? multiple ints?

A typical approach would be to take the first byte, shift it by 8 and add the second byte which will give you a 16 bit int. Unless the LSB is sent first and the MSB is sent second, then they are reversed.

Basically, more information is needed.