Open mateogianolio opened 10 months ago
If we rewrite ESPDevice to a factory class returning subclasses based on input params for transport and security, we can get cleaner method calls to connect (instead of passing null for unused params):
transport
security
connect
null
// security 0, ble device.connect(); // security 0, softAP device.connect(softAPPassword); // ... etc
If we rewrite ESPDevice to a factory class returning subclasses based on input params for
transport
andsecurity
, we can get cleaner method calls toconnect
(instead of passingnull
for unused params):