btclock_v3/test/test_json/test_bitaxe_parser.hpp

16 lines
323 B
C++
Raw Normal View History

2024-12-19 21:08:35 +00:00
#pragma once
// Mock the Arduino String class if needed
#ifndef ARDUINO
class String {
public:
String(const char* str) : data(str) {}
const char* c_str() const { return data; }
private:
const char* data;
};
#endif
// Declare only the function you want to test
void bitaxeParseApiResponse(String apiResponse);