I am hacking and slashing away at the Blufi demo, and have finally gotten my phone to communicate with the esp. I did, however have to do this:
Code: Select all
uint16_t blufi_crc_checksum(uint8_t iv8, uint8_t *data, int len)
{
/* This iv8 ignore, not used */
return 1; //esp_crc16_be(0, data, len);
}
From what I gather, esp_crc16_be is not available in IDF v4.0. What can I use instead? I think that this function uses the internal crypto hardware (???) so rolling my own crc function is not a nice solution.esp_crc.h: No such file or directory
I did find one in rom/crc.h but this causes a whole bunch of weird problems when included. We can get into that if this is my only option.