node-ethernet-ip
node-ethernet-ip copied to clipboard
I added the ability to read strings by modifying 'parseReadMessageResponse(data)' method. I add this to the case/ switch: case 672: this.controller_value = data.toString('ascii', 8); break;
Current Behavior
Expected Behavior
Possible Solution (Optional)
Context
Steps to Reproduce (for bugs only)
Your Environment
- Package version (Use
npm list
- e.g. 1.0.6): - Node Version (Use
node --version
- e.g. 9.8.0): - Operating System and version:
- Controller Type (eg 1756-L83E/B):
- Controller Firmware (eg 30.11):
L83...High power! We're actually actively working on integrating string read/write in a more general way along with UDTs right now. Come join us on gitter for more discussion!
@tjusticeus How exactly were you able to read strings? I really need the ability to just read strings but haven't been able to figure it out yet.
It has been awhile since i looked at this. I will have to refresh my memory. Get back to you soon.
Sent from Yahoo Mail on Android
On Thu, Jul 18, 2019 at 5:02 PM, austin557[email protected] wrote:
@tjusticeus How exactly were you able to read strings? I really need the ability to just read strings but haven't been able to figure it out yet.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
go to ethernet-ip/src/tag/index.js
go to method 'parseReadMessageResponse(data)' //Line 304
under the 'break' of case BOOL, I added another case
case 672: this.controller_value = data.toString('ascii', 8); break;
@tjusticeus Thanks for the help!
any know how to write string?