Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HardwareSerial missing write methods from Print due to name hiding #740

Closed
pmst opened this issue Jun 7, 2016 · 0 comments
Closed

HardwareSerial missing write methods from Print due to name hiding #740

pmst opened this issue Jun 7, 2016 · 0 comments

Comments

@pmst
Copy link
Contributor

pmst commented Jun 7, 2016

Due to C++ name hiding write methods from Print class are hidden in HardwareSerial.
For example:

uint8_t  buffer[16];
memset(buffer,0, 16);
SerialPort.write(buffer, 16);

gives compile error ("no matching function for call to 'HardwareSerial::write(const char [16], int)").
Adding using Print::write in HardwareSerial.h solves this (better could be refactor the whole thing).

pmst added a commit to pmst/Sming that referenced this issue Jun 7, 2016
@slaff slaff closed this as completed in b25ea69 Oct 21, 2016
johndoe8967 added a commit to johndoe8967/Sming that referenced this issue Oct 27, 2016
* commit 'f7dec873c8cb158b1fe21fb5080d9b8f6c844d19':
  Set the irom0 segment to its max allowed size.
  Fix SmingHub#740. Expose write methods from parent class Stream.
  Added access in nanosecond resolution to RTC.
  Updated the travis script. If a file from samples/ is changed then that sample project will be recompiled. If a file from Sming/ is changed then all sample projects will be recompiled. These changes will prevent Sming from accepting/having code that does not compile.
  Fixed compilation of two samples: * ArduCam * Basic_WebSkeleton
  * Fix for RF interrupts
  * Right interrupts implementation (more details: http://www.esp8266.com/viewtopic.php?p=16758&sid=464b2c4c09aeaafbd865ea46d9e40f8a#p16758)
  * Few additional comments to explain MCP23017 I2C connection options
  * Improvement for last STA config check
  + Forgotten spiffy build action on full rebuild + Preventing unnecessary frash memory writing operations for AP & STA config update (to save flash chip)
  Added access in nanosecond resolution to RTC.
  - WebSocket sample needs spiffs because of stored index.html - folder 'web' not necessary
softerra pushed a commit to softerra/Sming that referenced this issue Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant