mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-25 06:22:11 +03:00
Detect version of bridge.py running on the Yun.
This commit is contained in:
@ -61,12 +61,18 @@ class BridgeClass {
|
||||
return transfer(buff1, len1, buff2, len2, NULL, 0, rxbuff, rxlen);
|
||||
}
|
||||
|
||||
uint16_t getBridgeVersion()
|
||||
{
|
||||
return bridgeVersion;
|
||||
}
|
||||
|
||||
static const int TRANSFER_TIMEOUT = 0xFFFF;
|
||||
|
||||
private:
|
||||
uint8_t index;
|
||||
int timedRead(unsigned int timeout);
|
||||
void dropAll();
|
||||
uint16_t bridgeVersion;
|
||||
|
||||
private:
|
||||
void crcUpdate(uint8_t c);
|
||||
|
Reference in New Issue
Block a user