As per a friends suggestions I ma starting a learning resource for Zig. This is 2025-03-14, yes I know and a Very Joyful Holi Festival to you as well.
Lets look at the resources we have first:
- At First I got this one : How to learn Zig?
| /** | |
| * Boseji's Simple Modbus Slave and Bridge over USB-to-UART | |
| * | |
| * ## Introduction | |
| * | |
| * Here is the Program outline: | |
| * | |
| * - The hardware serial (USB-to-UART) is configured | |
| * at 19200 baud as the Modbus RTU slave. | |
| * |
| // | |
| // ॐ भूर्भुवः स्वः | |
| // तत्स॑वि॒तुर्वरे॑ण्यं॒ | |
| // भर्गो॑ दे॒वस्य॑ धीमहि। | |
| // धियो॒ यो नः॑ प्रचो॒दया॑त्॥ | |
| // | |
| // | |
| // बोसजी के द्वारा रचित जेसोन समय सहायक तन्त्राक्ष्। | |
| // =================================== | |
| // |
| # | |
| # ॐ भूर्भुवः स्वः | |
| # तत्स॑वि॒तुर्वरे॑ण्यं॒ | |
| # भर्गो॑ दे॒वस्य॑ धीमहि। | |
| # धियो॒ यो नः॑ प्रचो॒दया॑त्॥ | |
| # | |
| # | |
| # बोसजी के द्वारा रचित गोलङ्ग् कि डोकर कार्यविधि। | |
| # =================================== | |
| # |
This example builds upon the umodbus library.
PyPi https://pypi.org/project/uModbus/
| // Copyright 2021 Abhijit Bose. All rights reserved. | |
| // Use of this source code is governed by a Apache 2.0 license | |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "encoding/hex" |
| // Copyright 2021 Abhijit Bose. All rights reserved. | |
| // Use of this source code is governed by a Apache 2.0 license | |
| package main | |
| import ( | |
| "fmt" | |
| "encoding/hex" | |
| "golang.org/x/crypto/bcrypt" | |
| ) |
| // Copyright 2021 Abhijit Bose. All rights reserved. | |
| // Use of this source code is governed by a Apache 2.0 license | |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/hex" | |
| "fmt" |
| // Copyright 2020 Abhijit Bose. All rights reserved. | |
| // Use of this source code is governed by a Apache 2.0 license | |
| package main | |
| import ( | |
| "log" | |
| "sync" | |
| "time" | |
| ) |